public abstract class SeleniumBasedRequest
extends javax.servlet.http.HttpServletRequestWrapper
| Constructor and Description |
|---|
SeleniumBasedRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
Registry registry) |
SeleniumBasedRequest(javax.servlet.http.HttpServletRequest request,
Registry registry,
RequestType type,
Map<String,Object> desiredCapability) |
| Modifier and Type | Method and Description |
|---|---|
static SeleniumBasedRequest |
createFromRequest(javax.servlet.http.HttpServletRequest request,
Registry registry) |
abstract Map<String,Object> |
extractDesiredCapability()
Parse the request to extract the desiredCapabilities.
|
abstract RequestType |
extractRequestType() |
abstract ExternalSessionKey |
extractSession()
Extract the session from the request.
|
String |
getBody() |
int |
getContentLength() |
long |
getCreationTime() |
Map<String,Object> |
getDesiredCapabilities() |
javax.servlet.ServletInputStream |
getInputStream() |
abstract String |
getNewSessionRequestedCapability(TestSession session) |
BufferedReader |
getReader() |
Registry |
getRegistry() |
RequestType |
getRequestType() |
void |
setBody(byte[] content) |
void |
setBody(String content) |
String |
toString() |
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRolegetAttribute, getAttributeNames, getCharacterEncoding, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttribute, getAttributeNames, getCharacterEncoding, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncodingpublic SeleniumBasedRequest(javax.servlet.http.HttpServletRequest request,
Registry registry,
RequestType type,
Map<String,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 Map<String,Object> extractDesiredCapability()
public abstract String getNewSessionRequestedCapability(TestSession session)
public RequestType getRequestType()
public javax.servlet.ServletInputStream getInputStream()
throws IOException
getInputStream in interface javax.servlet.ServletRequestgetInputStream in class javax.servlet.ServletRequestWrapperIOExceptionpublic BufferedReader getReader() throws IOException
getReader in interface javax.servlet.ServletRequestgetReader in class javax.servlet.ServletRequestWrapperIOExceptionpublic int getContentLength()
getContentLength in interface javax.servlet.ServletRequestgetContentLength in class javax.servlet.ServletRequestWrapperpublic String getBody()
public void setBody(String content)
public void setBody(byte[] content)
public long getCreationTime()
Copyright © 2015. All rights reserved.