public abstract class SeleniumBasedRequest
extends javax.servlet.http.HttpServletRequestWrapper
| Modifier and Type | Class and Description |
|---|---|
private class |
SeleniumBasedRequest.ServletInputStreamImpl |
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
body |
private java.util.Map<java.lang.String,java.lang.Object> |
desiredCapability |
private java.lang.String |
encoding |
private Registry |
registry |
private static java.util.List<SeleniumBasedRequestFactory> |
requestFactories |
private long |
timestamp |
private RequestType |
type |
| Constructor and Description |
|---|
SeleniumBasedRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
Registry registry) |
SeleniumBasedRequest(javax.servlet.http.HttpServletRequest request,
Registry 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,
Registry 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() |
abstract java.lang.String |
getNewSessionRequestedCapability(TestSession session) |
java.io.BufferedReader |
getReader() |
Registry |
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, upgradegetAsyncContext, 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, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsyncContext, 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, startAsyncprivate byte[] body
private final Registry registry
private final RequestType type
private final java.lang.String encoding
private final java.util.Map<java.lang.String,java.lang.Object> desiredCapability
private final long timestamp
private static java.util.List<SeleniumBasedRequestFactory> requestFactories
public SeleniumBasedRequest(javax.servlet.http.HttpServletRequest request,
Registry registry,
RequestType type,
java.util.Map<java.lang.String,java.lang.Object> desiredCapability)
public SeleniumBasedRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
Registry registry)
public static SeleniumBasedRequest createFromRequest(javax.servlet.http.HttpServletRequest request, Registry registry)
public Registry getRegistry()
public abstract RequestType extractRequestType()
public abstract ExternalSessionKey extractSession()
public abstract java.util.Map<java.lang.String,java.lang.Object> extractDesiredCapability()
public abstract java.lang.String getNewSessionRequestedCapability(TestSession session)
public RequestType getRequestType()
public javax.servlet.ServletInputStream getInputStream()
throws java.io.IOException
getInputStream in interface javax.servlet.ServletRequestgetInputStream in class javax.servlet.ServletRequestWrapperjava.io.IOExceptionpublic java.io.BufferedReader getReader()
throws java.io.IOException
getReader in interface javax.servlet.ServletRequestgetReader in class javax.servlet.ServletRequestWrapperjava.io.IOExceptionpublic int getContentLength()
getContentLength in interface javax.servlet.ServletRequestgetContentLength in class javax.servlet.ServletRequestWrapperpublic java.lang.String getBody()
public void setBody(java.lang.String content)
public void setBody(byte[] content)
public long getCreationTime()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Map<java.lang.String,java.lang.Object> getDesiredCapabilities()