public abstract class SeleniumBasedRequest
extends javax.servlet.http.HttpServletRequestWrapper
Constructor and Description |
---|
SeleniumBasedRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
GridRegistry registry) |
SeleniumBasedRequest(javax.servlet.http.HttpServletRequest request,
GridRegistry registry,
RequestType type,
java.util.Map<java.lang.String,java.lang.Object> desiredCapability) |
Modifier and Type | Method and Description |
---|---|
static SeleniumBasedRequest |
createFromRequest(javax.servlet.http.HttpServletRequest request,
GridRegistry registry) |
abstract java.util.Map<java.lang.String,java.lang.Object> |
extractDesiredCapability()
Parse the request to extract the desiredCapabilities.
|
abstract RequestType |
extractRequestType() |
abstract ExternalSessionKey |
extractSession()
Extract the session from the request.
|
java.lang.String |
getBody() |
int |
getContentLength() |
long |
getCreationTime() |
java.util.Map<java.lang.String,java.lang.Object> |
getDesiredCapabilities() |
javax.servlet.ServletInputStream |
getInputStream() |
java.io.BufferedReader |
getReader() |
GridRegistry |
getRegistry() |
RequestType |
getRequestType() |
void |
setBody(byte[] content) |
void |
setBody(java.lang.String content) |
java.lang.String |
toString() |
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public SeleniumBasedRequest(javax.servlet.http.HttpServletRequest request, GridRegistry registry, RequestType type, java.util.Map<java.lang.String,java.lang.Object> desiredCapability)
public SeleniumBasedRequest(javax.servlet.http.HttpServletRequest httpServletRequest, GridRegistry registry)
public static SeleniumBasedRequest createFromRequest(javax.servlet.http.HttpServletRequest request, GridRegistry registry)
public GridRegistry getRegistry()
public abstract RequestType extractRequestType()
public abstract ExternalSessionKey extractSession()
public abstract java.util.Map<java.lang.String,java.lang.Object> extractDesiredCapability()
public RequestType getRequestType()
public javax.servlet.ServletInputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.servlet.ServletRequest
getInputStream
in class javax.servlet.ServletRequestWrapper
java.io.IOException
public java.io.BufferedReader getReader() throws java.io.IOException
getReader
in interface javax.servlet.ServletRequest
getReader
in class javax.servlet.ServletRequestWrapper
java.io.IOException
public int getContentLength()
getContentLength
in interface javax.servlet.ServletRequest
getContentLength
in class javax.servlet.ServletRequestWrapper
public java.lang.String getBody()
public void setBody(java.lang.String content) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void setBody(byte[] content)
public long getCreationTime()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> getDesiredCapabilities()