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() |
static SeleniumProtocol |
getRequestProtocol(javax.servlet.http.HttpServletRequest request)
check the request and finds out if that's a selenium legacy protocol( RC ) or a webdriver one.
|
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, isUserInRole
getAttribute, 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, setRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getAttributeNames, getCharacterEncoding, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
public 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 static SeleniumProtocol getRequestProtocol(javax.servlet.http.HttpServletRequest request)
request
- 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.ServletRequest
getInputStream
in class javax.servlet.ServletRequestWrapper
IOException
public BufferedReader getReader() throws IOException
getReader
in interface javax.servlet.ServletRequest
getReader
in class javax.servlet.ServletRequestWrapper
IOException
public int getContentLength()
getContentLength
in interface javax.servlet.ServletRequest
getContentLength
in class javax.servlet.ServletRequestWrapper
public String getBody()
public void setBody(String content)
public void setBody(byte[] content)
public long getCreationTime()
Copyright © 2013. All rights reserved.