@NotThreadSafe public class MockHttpServletRequest extends Object implements javax.servlet.http.HttpServletRequest, com.helger.commons.locale.IHasLocale, IServletRequest300To310Migration
HttpServletRequest.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_INVOKE_HTTP_LISTENER |
static com.helger.commons.http.EHttpMethod |
DEFAULT_METHOD
The default HTTP method: GET
|
static String |
DEFAULT_PROTOCOL |
static String |
DEFAULT_REMOTE_ADDR |
static String |
DEFAULT_REMOTE_HOST |
static String |
DEFAULT_SCHEME |
static String |
DEFAULT_SERVER_ADDR |
static String |
DEFAULT_SERVER_NAME |
static int |
DEFAULT_SERVER_PORT |
| Constructor and Description |
|---|
MockHttpServletRequest()
Create a new MockHttpServletRequest with a default
MockServletContext. |
MockHttpServletRequest(javax.servlet.ServletContext aServletContext)
Create a new MockHttpServletRequest.
|
MockHttpServletRequest(javax.servlet.ServletContext aServletContext,
com.helger.commons.http.EHttpMethod eMethod)
Create a new MockHttpServletRequest.
|
MockHttpServletRequest(javax.servlet.ServletContext aServletContext,
com.helger.commons.http.EHttpMethod eMethod,
boolean bInvokeHttpListeners)
Create a new MockHttpServletRequest.
|
| Modifier and Type | Method and Description |
|---|---|
MockHttpServletRequest |
addHeader(String sName,
String aValue)
Add a header entry for the given name.
|
MockHttpServletRequest |
addParameter(String sName,
String sValue)
Add a single value for the specified HTTP parameter.
|
MockHttpServletRequest |
addParameter(String sName,
String[] aValues)
Add an array of values for the specified HTTP parameter.
|
MockHttpServletRequest |
addParameters(List<? extends com.helger.commons.url.URLParameter> aParams)
Adds all provided parameters without replacing any existing
values.
|
MockHttpServletRequest |
addPreferredLocale(Locale aLocale)
Add a new preferred locale, before any existing locales.
|
MockHttpServletRequest |
addUserRole(String sRole) |
boolean |
authenticate(javax.servlet.http.HttpServletResponse response) |
String |
changeSessionId() |
protected void |
checkActive()
Check whether this request is still active (that is, not completed yet),
throwing an IllegalStateException if not active anymore.
|
MockHttpServletRequest |
clearAttributes()
Clear all of this request's attributes.
|
void |
close()
Mark this request as completed, keeping its state.
|
javax.servlet.AsyncContext |
getAsyncContext() |
Object |
getAttribute(String sName) |
Enumeration<String> |
getAttributeNames() |
String |
getAuthType() |
String |
getCharacterEncoding() |
Charset |
getCharacterEncodingObj() |
Charset |
getCharacterEncodingObjOrDefault() |
int |
getContentLength() |
long |
getContentLengthLong()
Returns the length, in bytes, of the request body and made available by the
input stream, or -1 if the length is not known.
|
String |
getContentType() |
String |
getContextPath() |
javax.servlet.http.Cookie[] |
getCookies() |
long |
getDateHeader(String sName)
Deprecated.
|
javax.servlet.DispatcherType |
getDispatcherType() |
String |
getHeader(String sName) |
Enumeration<String> |
getHeaderNames() |
Enumeration<String> |
getHeaders(String sName) |
javax.servlet.ServletInputStream |
getInputStream()
Note: do not change the content via
setContent(byte[]), while an
input stream is open, because this may lead to indeterministic results! |
int |
getIntHeader(String sName)
Deprecated.
|
String |
getLocalAddr() |
Locale |
getLocale() |
Enumeration<Locale> |
getLocales() |
String |
getLocalName() |
int |
getLocalPort() |
String |
getMethod() |
com.helger.commons.http.EHttpMethod |
getMethodEnum() |
String |
getParameter(String sName) |
com.helger.commons.collection.impl.ICommonsOrderedMap<String,String[]> |
getParameterMap() |
Enumeration<String> |
getParameterNames() |
String[] |
getParameterValues(String sName) |
javax.servlet.http.Part |
getPart(String name) |
com.helger.commons.collection.impl.ICommonsCollection<javax.servlet.http.Part> |
getParts() |
String |
getPathInfo() |
String |
getPathTranslated() |
String |
getProtocol() |
String |
getQueryString() |
BufferedReader |
getReader() |
String |
getRealPath(String sPath)
Deprecated.
|
String |
getRemoteAddr() |
String |
getRemoteHost() |
int |
getRemotePort() |
String |
getRemoteUser() |
MockRequestDispatcher |
getRequestDispatcher(String sPath) |
String |
getRequestedSessionId() |
String |
getRequestURI() |
StringBuffer |
getRequestURL() |
String |
getScheme() |
String |
getServerName() |
int |
getServerPort() |
javax.servlet.ServletContext |
getServletContext() |
String |
getServletPath() |
javax.servlet.http.HttpSession |
getSession() |
javax.servlet.http.HttpSession |
getSession(boolean bCreate) |
String |
getSessionID() |
Principal |
getUserPrincipal() |
void |
invalidate()
Invalidate this request, clearing its state and invoking all HTTP event
listener.
|
boolean |
isActive() |
boolean |
isAsyncStarted() |
boolean |
isAsyncSupported() |
boolean |
isRequestedSessionIdFromCookie() |
boolean |
isRequestedSessionIdFromUrl()
Deprecated.
|
boolean |
isRequestedSessionIdFromURL() |
boolean |
isRequestedSessionIdValid() |
boolean |
isSecure() |
boolean |
isUserInRole(String sRole) |
void |
login(String username,
String password) |
void |
logout() |
MockHttpServletRequest |
removeAllParameters()
Removes all existing parameters.
|
void |
removeAttribute(String sName) |
MockHttpServletRequest |
removeHeader(String sName) |
MockHttpServletRequest |
removeParameter(String sName)
Remove already registered values for the specified HTTP parameter, if any.
|
MockHttpServletRequest |
setAllPaths(String sRequestURL)
Set all path related members to the value to be deduced from the request
URI.
|
void |
setAttribute(String sName,
Object aValue) |
MockHttpServletRequest |
setAuthType(String sAuthType) |
void |
setCharacterEncoding(Charset aCharacterEncoding) |
void |
setCharacterEncoding(String sCharacterEncoding) |
MockHttpServletRequest |
setContent(byte[] aContent) |
MockHttpServletRequest |
setContentType(com.helger.commons.mime.IMimeType aContentType) |
MockHttpServletRequest |
setContentType(String sContentType) |
MockHttpServletRequest |
setContextPath(String sContextPath) |
MockHttpServletRequest |
setCookies(javax.servlet.http.Cookie[] aCookies) |
MockHttpServletRequest |
setLocalAddr(String sLocalAddr) |
MockHttpServletRequest |
setLocalName(String sLocalName) |
MockHttpServletRequest |
setLocalPort(int nLocalPort) |
MockHttpServletRequest |
setMethod(com.helger.commons.http.EHttpMethod eMethod) |
MockHttpServletRequest |
setParameter(String sName,
String sValue)
Set a single value for the specified HTTP parameter.
|
MockHttpServletRequest |
setParameter(String sName,
String[] aValues)
Set an array of values for the specified HTTP parameter.
|
MockHttpServletRequest |
setParameters(List<? extends com.helger.commons.url.URLParameter> aParams)
Sets all provided parameters replacing any existing values for the
provided parameter names.
|
MockHttpServletRequest |
setPathInfo(String sPathInfo) |
MockHttpServletRequest |
setProtocol(String sProtocol) |
MockHttpServletRequest |
setQueryString(String sQueryString) |
MockHttpServletRequest |
setRemoteAddr(String sRemoteAddr) |
MockHttpServletRequest |
setRemoteHost(String sRemoteHost) |
MockHttpServletRequest |
setRemotePort(int nRemotePort) |
MockHttpServletRequest |
setRemoteUser(String sRemoteUser) |
MockHttpServletRequest |
setRequestedSessionIdFromCookie(boolean bRequestedSessionIdFromCookie) |
MockHttpServletRequest |
setRequestedSessionIdFromURL(boolean bRequestedSessionIdFromURL) |
MockHttpServletRequest |
setRequestedSessionIdValid(boolean bRequestedSessionIdValid) |
MockHttpServletRequest |
setRequestURI(String sRequestURI) |
MockHttpServletRequest |
setScheme(String sScheme) |
MockHttpServletRequest |
setSecure(boolean bSecure) |
MockHttpServletRequest |
setServerName(String sServerName) |
MockHttpServletRequest |
setServerPort(int nServerPort) |
MockHttpServletRequest |
setServletPath(String sServletPath) |
MockHttpServletRequest |
setSession(javax.servlet.http.HttpSession aHttpSession) |
MockHttpServletRequest |
setSessionID(String sSessionID)
Define the session ID to be used when creating a new session
|
MockHttpServletRequest |
setUserPrincipal(Principal aUserPrincipal) |
javax.servlet.AsyncContext |
startAsync() |
javax.servlet.AsyncContext |
startAsync(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse) |
<T extends javax.servlet.http.HttpUpgradeHandler> |
upgrade(Class<T> handlerClass) |
public static final boolean DEFAULT_INVOKE_HTTP_LISTENER
public static final String DEFAULT_PROTOCOL
public static final String DEFAULT_SCHEME
public static final String DEFAULT_SERVER_ADDR
public static final String DEFAULT_SERVER_NAME
public static final int DEFAULT_SERVER_PORT
public static final String DEFAULT_REMOTE_ADDR
public static final String DEFAULT_REMOTE_HOST
public static final com.helger.commons.http.EHttpMethod DEFAULT_METHOD
public MockHttpServletRequest()
MockServletContext.MockServletContextpublic MockHttpServletRequest(@Nullable javax.servlet.ServletContext aServletContext)
aServletContext - the ServletContext that the request runs in (may be
null to use a default MockServletContext)MockServletContextpublic MockHttpServletRequest(@Nullable javax.servlet.ServletContext aServletContext, @Nullable com.helger.commons.http.EHttpMethod eMethod)
aServletContext - the ServletContext that the request runs in (may be
null to use a default MockServletContext)eMethod - the request method (may be null)MockServletContextpublic MockHttpServletRequest(@Nullable javax.servlet.ServletContext aServletContext, @Nullable com.helger.commons.http.EHttpMethod eMethod, boolean bInvokeHttpListeners)
aServletContext - the ServletContext that the request runs in (may be
null to use a default MockServletContext)eMethod - the request method (may be null)bInvokeHttpListeners - if true than the HTTP request event listeners from
MockHttpListener are triggeredsetMethod(com.helger.commons.http.EHttpMethod),
MockServletContext@Nonnull public final javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletRequestnull.public boolean isActive()
public void close()
public void invalidate()
close(),
clearAttributes()protected void checkActive()
@Nullable public Object getAttribute(@Nullable String sName)
getAttribute in interface javax.servlet.ServletRequest@Nonnull public Enumeration<String> getAttributeNames()
getAttributeNames in interface javax.servlet.ServletRequestpublic void setCharacterEncoding(@Nullable String sCharacterEncoding)
setCharacterEncoding in interface javax.servlet.ServletRequest@Nullable public String getCharacterEncoding()
getCharacterEncoding in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setContent(@Nullable byte[] aContent)
@CheckForSigned public int getContentLength()
getContentLength in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setContentType(@Nullable com.helger.commons.mime.IMimeType aContentType)
@Nonnull public MockHttpServletRequest setContentType(@Nullable String sContentType)
@Nullable public String getContentType()
getContentType in interface javax.servlet.ServletRequest@Nullable public javax.servlet.ServletInputStream getInputStream()
setContent(byte[]), while an
input stream is open, because this may lead to indeterministic results!getInputStream in interface javax.servlet.ServletRequestnull if no content is present. If non-
null the caller is responsible for closing the
InputStream.@Nonnull public MockHttpServletRequest setParameter(@Nonnull String sName, @Nullable String sValue)
If there are already one or more values registered for the given parameter name, they will be replaced.
sName - Parameter namesValue - Parameter value@Nonnull public MockHttpServletRequest setParameter(@Nonnull String sName, @Nullable String[] aValues)
If there are already one or more values registered for the given parameter name, they will be replaced.
sName - Parameter nameaValues - Parameter values@Nonnull public MockHttpServletRequest setParameters(@Nullable List<? extends com.helger.commons.url.URLParameter> aParams)
addParameters(List).aParams - Parameter name value map. May be null.@Nonnull public final MockHttpServletRequest addParameter(@Nonnull String sName, @Nullable String sValue)
If there are already one or more values registered for the given parameter name, the given value will be added to the end of the list.
sName - Parameter namesValue - Parameter value@Nonnull public final MockHttpServletRequest addParameter(@Nonnull String sName, @Nullable String[] aValues)
If there are already one or more values registered for the given parameter name, the given values will be added to the end of the list.
sName - Parameter nameaValues - Parameter values@Nonnull public MockHttpServletRequest addParameters(@Nullable List<? extends com.helger.commons.url.URLParameter> aParams)
setParameters(List).aParams - Parameter name value map@Nonnull public MockHttpServletRequest removeParameter(@Nonnull String sName)
sName - Parameter name@Nonnull public MockHttpServletRequest removeAllParameters()
@Nullable public String getParameter(@Nonnull String sName)
getParameter in interface javax.servlet.ServletRequest@Nonnull public Enumeration<String> getParameterNames()
getParameterNames in interface javax.servlet.ServletRequest@Nullable @ReturnsMutableCopy public String[] getParameterValues(@Nonnull String sName)
getParameterValues in interface javax.servlet.ServletRequest@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedMap<String,String[]> getParameterMap()
getParameterMap in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setProtocol(@Nullable String sProtocol)
@Nullable public String getProtocol()
getProtocol in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setScheme(@Nullable String sScheme)
@Nullable public String getScheme()
getScheme in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setServerName(@Nullable String sServerName)
@Nullable public String getServerName()
getServerName in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setServerPort(int nServerPort)
public int getServerPort()
getServerPort in interface javax.servlet.ServletRequest@Nullable public BufferedReader getReader()
getReader in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setRemoteAddr(@Nullable String sRemoteAddr)
@Nullable public String getRemoteAddr()
getRemoteAddr in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setRemoteHost(@Nullable String sRemoteHost)
@Nullable public String getRemoteHost()
getRemoteHost in interface javax.servlet.ServletRequestpublic void setAttribute(@Nonnull String sName, @Nullable Object aValue)
setAttribute in interface javax.servlet.ServletRequestpublic void removeAttribute(@Nonnull String sName)
removeAttribute in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest clearAttributes()
@Nonnull public MockHttpServletRequest addPreferredLocale(@Nonnull Locale aLocale)
aLocale - preferred locale@Nonnull public Locale getLocale()
getLocale in interface com.helger.commons.locale.IHasLocalegetLocale in interface javax.servlet.ServletRequest@Nonnull @Nonempty public Enumeration<Locale> getLocales()
getLocales in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setSecure(boolean bSecure)
public boolean isSecure()
isSecure in interface javax.servlet.ServletRequest@Nonnull public MockRequestDispatcher getRequestDispatcher(@Nonnull String sPath)
getRequestDispatcher in interface javax.servlet.ServletRequest@Deprecated public String getRealPath(@Nonnull String sPath)
getRealPath in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setRemotePort(int nRemotePort)
public int getRemotePort()
getRemotePort in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setLocalName(@Nullable String sLocalName)
@Nullable public String getLocalName()
getLocalName in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setLocalAddr(@Nullable String sLocalAddr)
@Nullable public String getLocalAddr()
getLocalAddr in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setLocalPort(int nLocalPort)
public int getLocalPort()
getLocalPort in interface javax.servlet.ServletRequest@Nonnull public MockHttpServletRequest setAuthType(@Nullable String sAuthType)
@Nullable public String getAuthType()
getAuthType in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setCookies(@Nullable javax.servlet.http.Cookie[] aCookies)
@Nullable public javax.servlet.http.Cookie[] getCookies()
getCookies in interface javax.servlet.http.HttpServletRequest@Nonnull public final MockHttpServletRequest addHeader(@Nullable String sName, @Nullable String aValue)
If there was no entry for that header name before, the value will be used as-is. In case of an existing entry, a String array will be created, adding the given value (more specifically, its toString representation) as further element.
Multiple values can only be stored as list of Strings, following the
Servlet spec (see getHeaders accessor). As alternative to
repeated addHeader calls for individual elements, you can use
a single call with an entire array or Collection of values as parameter.
sName - header nameaValue - header valuegetHeaderNames(),
getHeader(java.lang.String),
getHeaders(java.lang.String),
getDateHeader(java.lang.String),
getIntHeader(java.lang.String)@Nonnull public MockHttpServletRequest removeHeader(@Nullable String sName)
@UnsupportedOperation @Deprecated public long getDateHeader(@Nullable String sName)
getDateHeader in interface javax.servlet.http.HttpServletRequest@UnsupportedOperation @Deprecated public int getIntHeader(@Nullable String sName)
getIntHeader in interface javax.servlet.http.HttpServletRequest@Nullable public String getHeader(@Nullable String sName)
getHeader in interface javax.servlet.http.HttpServletRequest@Nonnull public Enumeration<String> getHeaders(@Nullable String sName)
getHeaders in interface javax.servlet.http.HttpServletRequest@Nonnull public Enumeration<String> getHeaderNames()
getHeaderNames in interface javax.servlet.http.HttpServletRequest@Nonnull public final MockHttpServletRequest setMethod(@Nullable com.helger.commons.http.EHttpMethod eMethod)
@Nullable public com.helger.commons.http.EHttpMethod getMethodEnum()
@Nullable public String getMethod()
getMethod in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setPathInfo(@Nullable String sPathInfo)
@Nullable public String getPathInfo()
getPathInfo in interface javax.servlet.http.HttpServletRequest@Nullable public String getPathTranslated()
getPathTranslated in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setContextPath(@Nullable String sContextPath)
@Nullable public String getContextPath()
getContextPath in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setQueryString(@Nullable String sQueryString)
@Nullable public String getQueryString()
getQueryString in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setRemoteUser(@Nullable String sRemoteUser)
@Nullable public String getRemoteUser()
getRemoteUser in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest addUserRole(@Nullable String sRole)
public boolean isUserInRole(@Nullable String sRole)
isUserInRole in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setUserPrincipal(@Nullable Principal aUserPrincipal)
@Nullable public Principal getUserPrincipal()
getUserPrincipal in interface javax.servlet.http.HttpServletRequest@Nullable public String getRequestedSessionId()
getRequestedSessionId in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setRequestURI(@Nullable String sRequestURI)
@Nullable public String getRequestURI()
getRequestURI in interface javax.servlet.http.HttpServletRequest@Nonnull public StringBuffer getRequestURL()
getRequestURL in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setServletPath(@Nullable String sServletPath)
@Nullable public String getServletPath()
getServletPath in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setSessionID(@Nullable String sSessionID)
sSessionID - The session ID to be used. If it is null a unique
session ID is generated.@Nullable public String getSessionID()
null if a new session ID
should be generated!@Nonnull public MockHttpServletRequest setSession(@Nullable javax.servlet.http.HttpSession aHttpSession)
@Nullable public javax.servlet.http.HttpSession getSession(boolean bCreate)
getSession in interface javax.servlet.http.HttpServletRequest@Nonnull public javax.servlet.http.HttpSession getSession()
getSession in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setRequestedSessionIdValid(boolean bRequestedSessionIdValid)
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setRequestedSessionIdFromCookie(boolean bRequestedSessionIdFromCookie)
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie in interface javax.servlet.http.HttpServletRequest@Nonnull public MockHttpServletRequest setRequestedSessionIdFromURL(boolean bRequestedSessionIdFromURL)
public boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL in interface javax.servlet.http.HttpServletRequest@Deprecated public boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequest@UnsupportedOperation public javax.servlet.AsyncContext startAsync()
startAsync in interface javax.servlet.ServletRequest@UnsupportedOperation
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
startAsync in interface javax.servlet.ServletRequest@UnsupportedOperation public boolean isAsyncStarted()
isAsyncStarted in interface javax.servlet.ServletRequestpublic boolean isAsyncSupported()
isAsyncSupported in interface javax.servlet.ServletRequest@UnsupportedOperation public javax.servlet.AsyncContext getAsyncContext()
getAsyncContext in interface javax.servlet.ServletRequestpublic javax.servlet.DispatcherType getDispatcherType()
getDispatcherType in interface javax.servlet.ServletRequest@UnsupportedOperation
public boolean authenticate(javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
authenticate in interface javax.servlet.http.HttpServletRequestIOExceptionjavax.servlet.ServletException@UnsupportedOperation public void login(String username, String password) throws javax.servlet.ServletException
login in interface javax.servlet.http.HttpServletRequestjavax.servlet.ServletException@UnsupportedOperation
public void logout()
throws javax.servlet.ServletException
logout in interface javax.servlet.http.HttpServletRequestjavax.servlet.ServletException@UnsupportedOperation
public com.helger.commons.collection.impl.ICommonsCollection<javax.servlet.http.Part> getParts()
throws IOException,
javax.servlet.ServletException
getParts in interface javax.servlet.http.HttpServletRequestIOExceptionjavax.servlet.ServletException@UnsupportedOperation public javax.servlet.http.Part getPart(String name) throws IOException, javax.servlet.ServletException
getPart in interface javax.servlet.http.HttpServletRequestIOExceptionjavax.servlet.ServletException@Nonnull public MockHttpServletRequest setAllPaths(@Nullable String sRequestURL)
sRequestURL - The request URL to parse and set correctly. If it is
null or empty, all methods are set to null
.setScheme(String),
setServerName(String),
setServerPort(int),
setContextPath(String),
setServletPath(String),
setPathInfo(String),
setQueryString(String),
setParameters(List)public long getContentLengthLong()
IServletRequest300To310MigrationgetContentLengthLong in interface IServletRequest300To310MigrationgetContentLengthLong in interface javax.servlet.ServletRequestpublic String changeSessionId()
changeSessionId in interface javax.servlet.http.HttpServletRequestpublic <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, javax.servlet.ServletException
upgrade in interface javax.servlet.http.HttpServletRequestIOExceptionjavax.servlet.ServletExceptionCopyright © 2016–2019 Philip Helger. All rights reserved.