public class InprocServletRequest extends Object implements HttpServletRequest
Modifier and Type | Field and Description |
---|---|
protected static SimpleDateFormat |
HEADER_DATE |
protected Map<String,Object> |
m_attributes |
protected String |
m_charset |
protected String |
m_contentType |
protected Cookie[] |
m_cookies |
protected Map<String,List<String>> |
m_headers |
protected ServletInputStream |
m_inputStream |
protected Locale |
m_locale |
protected Map<String,String[]> |
m_parameters |
protected BufferedReader |
m_reader |
protected HttpSession |
m_session |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
InprocServletRequest() |
protected static SimpleDateFormat HEADER_DATE
protected HttpSession m_session
protected Cookie[] m_cookies
protected ServletInputStream m_inputStream
protected BufferedReader m_reader
protected String m_charset
protected String m_contentType
protected Locale m_locale
public void release()
public Object getAttribute(String name)
getAttribute
in interface ServletRequest
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface ServletRequest
public String getCharacterEncoding()
getCharacterEncoding
in interface ServletRequest
public int getContentLength()
getContentLength
in interface ServletRequest
public String getContentType()
getContentType
in interface ServletRequest
public ServletInputStream getInputStream() throws IOException
getInputStream
in interface ServletRequest
IOException
public String getLocalAddr()
getLocalAddr
in interface ServletRequest
public Locale getLocale()
getLocale
in interface ServletRequest
public Enumeration<Locale> getLocales()
getLocales
in interface ServletRequest
public String getLocalName()
getLocalName
in interface ServletRequest
public int getLocalPort()
getLocalPort
in interface ServletRequest
public String getParameter(String name)
getParameter
in interface ServletRequest
public Map<String,String[]> getParameterMap()
getParameterMap
in interface ServletRequest
public Enumeration<String> getParameterNames()
getParameterNames
in interface ServletRequest
public String[] getParameterValues(String name)
getParameterValues
in interface ServletRequest
public String getProtocol()
getProtocol
in interface ServletRequest
public BufferedReader getReader() throws IOException
getReader
in interface ServletRequest
IOException
public String getRealPath(String path)
getRealPath
in interface ServletRequest
public String getRemoteAddr()
getRemoteAddr
in interface ServletRequest
public String getRemoteHost()
getRemoteHost
in interface ServletRequest
public int getRemotePort()
getRemotePort
in interface ServletRequest
public RequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface ServletRequest
public String getScheme()
getScheme
in interface ServletRequest
public String getServerName()
getServerName
in interface ServletRequest
public int getServerPort()
getServerPort
in interface ServletRequest
public boolean isSecure()
isSecure
in interface ServletRequest
public void removeAttribute(String name)
removeAttribute
in interface ServletRequest
public void setAttribute(String name, Object value)
setAttribute
in interface ServletRequest
public void setCharacterEncoding(String charset) throws UnsupportedEncodingException
setCharacterEncoding
in interface ServletRequest
UnsupportedEncodingException
public String getAuthType()
getAuthType
in interface HttpServletRequest
public String getContextPath()
getContextPath
in interface HttpServletRequest
public Cookie[] getCookies()
getCookies
in interface HttpServletRequest
public long getDateHeader(String name)
getDateHeader
in interface HttpServletRequest
public String getHeader(String name)
getHeader
in interface HttpServletRequest
public Enumeration<String> getHeaderNames()
getHeaderNames
in interface HttpServletRequest
public Enumeration<String> getHeaders(String name)
getHeaders
in interface HttpServletRequest
public int getIntHeader(String name)
getIntHeader
in interface HttpServletRequest
public String getMethod()
getMethod
in interface HttpServletRequest
public String getPathInfo()
getPathInfo
in interface HttpServletRequest
public String getPathTranslated()
getPathTranslated
in interface HttpServletRequest
public String getQueryString()
getQueryString
in interface HttpServletRequest
public String getRemoteUser()
getRemoteUser
in interface HttpServletRequest
public String getRequestedSessionId()
getRequestedSessionId
in interface HttpServletRequest
public String getRequestURI()
getRequestURI
in interface HttpServletRequest
public StringBuffer getRequestURL()
getRequestURL
in interface HttpServletRequest
public String getServletPath()
getServletPath
in interface HttpServletRequest
public HttpSession getSession()
getSession
in interface HttpServletRequest
public HttpSession getSession(boolean create)
getSession
in interface HttpServletRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface HttpServletRequest
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie
in interface HttpServletRequest
public boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl
in interface HttpServletRequest
public boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL
in interface HttpServletRequest
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid
in interface HttpServletRequest
public boolean isUserInRole(String role)
isUserInRole
in interface HttpServletRequest
public void setSession(HttpSession session)
public void setCookies(Cookie[] cookies)
public void setInputStream(ServletInputStream inputStream)
public void setReader(BufferedReader reader)
public void setContentType(String contentType)
public void setLocale(Locale locale)
public AsyncContext getAsyncContext()
getAsyncContext
in interface ServletRequest
public DispatcherType getDispatcherType()
getDispatcherType
in interface ServletRequest
public ServletContext getServletContext()
getServletContext
in interface ServletRequest
public boolean isAsyncStarted()
isAsyncStarted
in interface ServletRequest
public boolean isAsyncSupported()
isAsyncSupported
in interface ServletRequest
public AsyncContext startAsync()
startAsync
in interface ServletRequest
public AsyncContext startAsync(ServletRequest arg0, ServletResponse arg1)
startAsync
in interface ServletRequest
public boolean authenticate(HttpServletResponse arg0) throws IOException, ServletException
authenticate
in interface HttpServletRequest
IOException
ServletException
public Part getPart(String arg0) throws IOException, IllegalStateException, ServletException
getPart
in interface HttpServletRequest
IOException
IllegalStateException
ServletException
public Collection<Part> getParts() throws IOException, IllegalStateException, ServletException
getParts
in interface HttpServletRequest
IOException
IllegalStateException
ServletException
public void login(String arg0, String arg1) throws ServletException
login
in interface HttpServletRequest
ServletException
public void logout() throws ServletException
logout
in interface HttpServletRequest
ServletException
public long getContentLengthLong()
getContentLengthLong
in interface ServletRequest
public String changeSessionId()
changeSessionId
in interface HttpServletRequest
public <T extends HttpUpgradeHandler> T upgrade(Class<T> arg0) throws IOException, ServletException
upgrade
in interface HttpServletRequest
IOException
ServletException