public class MockHttpServletRequest extends org.apache.myfaces.test.mock.MockHttpServletRequest
Constructor and Description |
---|
MockHttpServletRequest(javax.servlet.ServletContext servletContext,
String uri) |
MockHttpServletRequest(javax.servlet.ServletContext servletContext,
String method,
String uri) |
MockHttpServletRequest(javax.servlet.ServletContext servletContext,
String method,
URI uri) |
MockHttpServletRequest(javax.servlet.ServletContext servletContext,
URI uri) |
addAttributeListener, addCookie, addDateHeader, addHeader, addIntHeader, addParameter, addUserRole, clearUserRoles, getAttribute, getAttributeNames, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getServletContext, getUserPrincipal, getWebContainer, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, removeAttribute, setAttribute, setContextPath, setHttpSession, setInputStream, setLocale, setMethod, setPathElements, setPathInfo, setServletContext, setServletPath, setUserPrincipal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MockHttpServletRequest(javax.servlet.ServletContext servletContext, URI uri)
public MockHttpServletRequest(javax.servlet.ServletContext servletContext, String uri)
public MockHttpServletRequest(javax.servlet.ServletContext servletContext, String method, String uri)
public String getAuthType()
getAuthType
in interface javax.servlet.http.HttpServletRequest
getAuthType
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public javax.servlet.http.Cookie[] getCookies()
getCookies
in interface javax.servlet.http.HttpServletRequest
getCookies
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getMethod()
getMethod
in interface javax.servlet.http.HttpServletRequest
getMethod
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getPathInfo()
getPathInfo
in interface javax.servlet.http.HttpServletRequest
getPathInfo
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getPathTranslated()
getPathTranslated
in interface javax.servlet.http.HttpServletRequest
getPathTranslated
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getContextPath()
getContextPath
in interface javax.servlet.http.HttpServletRequest
getContextPath
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getQueryString()
getQueryString
in interface javax.servlet.http.HttpServletRequest
getQueryString
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getRequestedSessionId()
getRequestedSessionId
in interface javax.servlet.http.HttpServletRequest
getRequestedSessionId
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getRequestURI()
getRequestURI
in interface javax.servlet.http.HttpServletRequest
getRequestURI
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public StringBuffer getRequestURL()
getRequestURL
in interface javax.servlet.http.HttpServletRequest
getRequestURL
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getServletPath()
getServletPath
in interface javax.servlet.http.HttpServletRequest
getServletPath
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public javax.servlet.http.HttpSession getSession(boolean create)
getSession
in interface javax.servlet.http.HttpServletRequest
getSession
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public javax.servlet.http.HttpSession getSession()
getSession
in interface javax.servlet.http.HttpServletRequest
getSession
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getCharacterEncoding()
getCharacterEncoding
in interface javax.servlet.ServletRequest
getCharacterEncoding
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public void setCharacterEncoding(String characterEncoding)
setCharacterEncoding
in interface javax.servlet.ServletRequest
setCharacterEncoding
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public int getContentLength()
getContentLength
in interface javax.servlet.ServletRequest
getContentLength
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getContentType()
getContentType
in interface javax.servlet.ServletRequest
getContentType
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public javax.servlet.ServletInputStream getInputStream()
getInputStream
in interface javax.servlet.ServletRequest
getInputStream
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getProtocol()
getProtocol
in interface javax.servlet.ServletRequest
getProtocol
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getScheme()
getScheme
in interface javax.servlet.ServletRequest
getScheme
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getServerName()
getServerName
in interface javax.servlet.ServletRequest
getServerName
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public int getServerPort()
getServerPort
in interface javax.servlet.ServletRequest
getServerPort
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public BufferedReader getReader()
getReader
in interface javax.servlet.ServletRequest
getReader
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getRemoteAddr()
getRemoteAddr
in interface javax.servlet.ServletRequest
getRemoteAddr
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getRemoteHost()
getRemoteHost
in interface javax.servlet.ServletRequest
getRemoteHost
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public Locale getLocale()
getLocale
in interface javax.servlet.ServletRequest
getLocale
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public Enumeration getLocales()
getLocales
in interface javax.servlet.ServletRequest
getLocales
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public boolean isSecure()
isSecure
in interface javax.servlet.ServletRequest
isSecure
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public javax.servlet.RequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface javax.servlet.ServletRequest
getRequestDispatcher
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getRealPath(String path)
getRealPath
in interface javax.servlet.ServletRequest
getRealPath
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public int getRemotePort()
getRemotePort
in interface javax.servlet.ServletRequest
getRemotePort
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getLocalName()
getLocalName
in interface javax.servlet.ServletRequest
getLocalName
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public String getLocalAddr()
getLocalAddr
in interface javax.servlet.ServletRequest
getLocalAddr
in class org.apache.myfaces.test.mock.MockHttpServletRequest
public int getLocalPort()
getLocalPort
in interface javax.servlet.ServletRequest
getLocalPort
in class org.apache.myfaces.test.mock.MockHttpServletRequest
Copyright © 2020 The Apache Software Foundation. All rights reserved.