public class MockServletRequest
extends java.lang.Object
Constructor and Description |
---|
MockServletRequest() |
MockServletRequest(HttpSession session) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(HttpServletResponse arg0) |
java.lang.String |
changeSessionId() |
AsyncContext |
getAsyncContext() |
java.lang.Object |
getAttribute(java.lang.String arg0) |
java.util.Enumeration |
getAttributeNames() |
java.lang.String |
getAuthType() |
java.lang.String |
getCharacterEncoding() |
int |
getContentLength() |
long |
getContentLengthLong() |
java.lang.String |
getContentType() |
java.lang.String |
getContextPath() |
Cookie[] |
getCookies() |
long |
getDateHeader(java.lang.String arg0) |
DispatcherType |
getDispatcherType() |
java.lang.String |
getHeader(java.lang.String arg0) |
java.util.Enumeration |
getHeaderNames() |
java.util.Enumeration |
getHeaders(java.lang.String arg0) |
ServletInputStream |
getInputStream() |
int |
getIntHeader(java.lang.String arg0) |
java.lang.String |
getLocalAddr() |
java.util.Locale |
getLocale() |
java.util.Enumeration |
getLocales() |
java.lang.String |
getLocalName() |
int |
getLocalPort() |
java.lang.String |
getMethod() |
java.lang.String |
getParameter(java.lang.String arg0) |
java.util.Map |
getParameterMap() |
java.util.Enumeration |
getParameterNames() |
java.lang.String[] |
getParameterValues(java.lang.String arg0) |
Part |
getPart(java.lang.String arg0) |
java.util.Collection<Part> |
getParts() |
java.lang.String |
getPathInfo() |
java.lang.String |
getPathTranslated() |
java.lang.String |
getProtocol() |
java.lang.String |
getQueryString() |
java.io.BufferedReader |
getReader() |
java.lang.String |
getRealPath(java.lang.String arg0) |
java.lang.String |
getRemoteAddr() |
java.lang.String |
getRemoteHost() |
int |
getRemotePort() |
java.lang.String |
getRemoteUser() |
RequestDispatcher |
getRequestDispatcher(java.lang.String arg0) |
java.lang.String |
getRequestedSessionId() |
java.lang.String |
getRequestURI() |
java.lang.StringBuffer |
getRequestURL() |
java.lang.String |
getScheme() |
java.lang.String |
getServerName() |
int |
getServerPort() |
ServletContext |
getServletContext() |
java.lang.String |
getServletPath() |
HttpSession |
getSession() |
HttpSession |
getSession(boolean arg0) |
java.security.Principal |
getUserPrincipal() |
HttpSession |
getWrapperSession() |
boolean |
isAsyncStarted() |
boolean |
isAsyncSupported() |
boolean |
isRequestedSessionIdFromCookie() |
boolean |
isRequestedSessionIdFromUrl() |
boolean |
isRequestedSessionIdFromURL() |
boolean |
isRequestedSessionIdValid() |
boolean |
isSecure() |
boolean |
isUserInRole(java.lang.String arg0) |
void |
login(java.lang.String arg0,
java.lang.String arg1) |
void |
logout() |
void |
removeAttribute(java.lang.String arg0) |
void |
setAttribute(java.lang.String arg0,
java.lang.Object arg1) |
void |
setCharacterEncoding(java.lang.String arg0) |
void |
setWrapperHeaders(java.util.HashMap<java.lang.String,java.lang.String> headers) |
void |
setWrapperSession(HttpSession wrapperSession) |
AsyncContext |
startAsync() |
AsyncContext |
startAsync(ServletRequest arg0,
ServletResponse arg1) |
<T extends HttpUpgradeHandler> |
upgrade(java.lang.Class<T> arg0) |
public MockServletRequest()
public MockServletRequest(HttpSession session)
public java.lang.Object getAttribute(java.lang.String arg0)
public java.util.Enumeration getAttributeNames()
public java.lang.String getCharacterEncoding()
public int getContentLength()
public java.lang.String getContentType()
public ServletInputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getLocalAddr()
public java.lang.String getLocalName()
public int getLocalPort()
public java.util.Locale getLocale()
public java.util.Enumeration getLocales()
public java.lang.String getParameter(java.lang.String arg0)
public java.util.Map getParameterMap()
public java.util.Enumeration getParameterNames()
public java.lang.String[] getParameterValues(java.lang.String arg0)
public java.lang.String getProtocol()
public java.io.BufferedReader getReader() throws java.io.IOException
java.io.IOException
public java.lang.String getRealPath(java.lang.String arg0)
public java.lang.String getRemoteAddr()
public java.lang.String getRemoteHost()
public int getRemotePort()
public RequestDispatcher getRequestDispatcher(java.lang.String arg0)
public java.lang.String getScheme()
public java.lang.String getServerName()
public int getServerPort()
public boolean isSecure()
public void removeAttribute(java.lang.String arg0)
public void setAttribute(java.lang.String arg0, java.lang.Object arg1)
public void setCharacterEncoding(java.lang.String arg0) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public java.lang.String getAuthType()
public java.lang.String getContextPath()
public Cookie[] getCookies()
public long getDateHeader(java.lang.String arg0)
public java.lang.String getHeader(java.lang.String arg0)
public java.util.Enumeration getHeaderNames()
public java.util.Enumeration getHeaders(java.lang.String arg0)
public int getIntHeader(java.lang.String arg0)
public java.lang.String getMethod()
public java.lang.String getPathInfo()
public java.lang.String getPathTranslated()
public java.lang.String getQueryString()
public java.lang.String getRemoteUser()
public java.lang.String getRequestURI()
public java.lang.StringBuffer getRequestURL()
public java.lang.String getRequestedSessionId()
public java.lang.String getServletPath()
public HttpSession getSession()
public HttpSession getSession(boolean arg0)
public java.security.Principal getUserPrincipal()
public boolean isRequestedSessionIdFromCookie()
public boolean isRequestedSessionIdFromURL()
public boolean isRequestedSessionIdFromUrl()
public boolean isRequestedSessionIdValid()
public boolean isUserInRole(java.lang.String arg0)
public HttpSession getWrapperSession()
public void setWrapperSession(HttpSession wrapperSession)
public void setWrapperHeaders(java.util.HashMap<java.lang.String,java.lang.String> headers)
public AsyncContext getAsyncContext()
public DispatcherType getDispatcherType()
public ServletContext getServletContext()
public boolean isAsyncStarted()
public boolean isAsyncSupported()
public AsyncContext startAsync() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public AsyncContext startAsync(ServletRequest arg0, ServletResponse arg1) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public boolean authenticate(HttpServletResponse arg0) throws java.io.IOException, ServletException
java.io.IOException
ServletException
public Part getPart(java.lang.String arg0) throws java.io.IOException, ServletException
java.io.IOException
ServletException
public java.util.Collection<Part> getParts() throws java.io.IOException, ServletException
java.io.IOException
ServletException
public void login(java.lang.String arg0, java.lang.String arg1) throws ServletException
ServletException
public void logout() throws ServletException
ServletException
public long getContentLengthLong()
public java.lang.String changeSessionId()
public <T extends HttpUpgradeHandler> T upgrade(java.lang.Class<T> arg0) throws java.io.IOException, ServletException
java.io.IOException
ServletException