class Servlet3MockHttpServletRequest extends MockHttpServletRequest
Modifier and Type | Field and Description |
---|---|
private MockAsyncContext |
asyncContext |
private boolean |
asyncStarted |
private java.util.Map<java.lang.String,Part> |
parts |
DEFAULT_PROTOCOL, DEFAULT_REMOTE_ADDR, DEFAULT_REMOTE_HOST, DEFAULT_SERVER_ADDR, DEFAULT_SERVER_NAME, DEFAULT_SERVER_PORT
Constructor and Description |
---|
Servlet3MockHttpServletRequest(ServletContext servletContext) |
Modifier and Type | Method and Description |
---|---|
void |
addPart(Part part) |
boolean |
authenticate(HttpServletResponse response) |
AsyncContext |
getAsyncContext() |
DispatcherType |
getDispatcherType() |
Part |
getPart(java.lang.String key) |
java.util.Collection<Part> |
getParts() |
boolean |
isAsyncStarted() |
boolean |
isAsyncSupported() |
void |
setAsyncContext(MockAsyncContext asyncContext) |
void |
setAsyncStarted(boolean asyncStarted) |
AsyncContext |
startAsync() |
AsyncContext |
startAsync(ServletRequest request,
ServletResponse response) |
addHeader, addParameter, addParameter, addParameters, addPreferredLocale, addUserRole, checkActive, clearAttributes, close, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getUserPrincipal, invalidate, isActive, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, removeAllParameters, removeAttribute, removeParameter, setAttribute, setAuthType, setCharacterEncoding, setContent, setContentType, setContextPath, setCookies, setLocalAddr, setLocalName, setLocalPort, setMethod, setParameter, setParameter, setParameters, setPathInfo, setPreferredLocales, setProtocol, setQueryString, setRemoteAddr, setRemoteHost, setRemotePort, setRemoteUser, setRequestedSessionId, setRequestedSessionIdFromCookie, setRequestedSessionIdFromURL, setRequestedSessionIdValid, setRequestURI, setScheme, setSecure, setServerName, setServerPort, setServletPath, setSession, setUserPrincipal
private boolean asyncStarted
private MockAsyncContext asyncContext
private java.util.Map<java.lang.String,Part> parts
public Servlet3MockHttpServletRequest(ServletContext servletContext)
public boolean isAsyncSupported()
public AsyncContext startAsync()
public AsyncContext startAsync(ServletRequest request, ServletResponse response)
public AsyncContext getAsyncContext()
public void setAsyncContext(MockAsyncContext asyncContext)
public DispatcherType getDispatcherType()
public boolean isAsyncStarted()
public void setAsyncStarted(boolean asyncStarted)
public void addPart(Part part)
public Part getPart(java.lang.String key) throws java.io.IOException, java.lang.IllegalStateException, ServletException
java.io.IOException
java.lang.IllegalStateException
ServletException
public java.util.Collection<Part> getParts() throws java.io.IOException, java.lang.IllegalStateException, ServletException
java.io.IOException
java.lang.IllegalStateException
ServletException
public boolean authenticate(HttpServletResponse response) throws java.io.IOException, ServletException
authenticate
in class MockHttpServletRequest
java.io.IOException
ServletException