public class HttpServletRequestImpl extends Object implements HttpServletRequest, ServletRequestForwarder
HttpServletRequest implementation.| Modifier and Type | Field and Description |
|---|---|
static String |
RFC1123_HEADER_DATE_FORMAT
RFC 1123 header date format.
|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTHATTRIBUTE_FORWARDER| Constructor and Description |
|---|
HttpServletRequestImpl(net.officefloor.plugin.socket.server.http.ServerHttpConnection connection,
HttpRequestState requestAttributes,
HttpServletSecurity security,
String sessionIdIdentifierName,
HttpSession session,
ServletContext servletContext,
Locale defaultLocale,
net.officefloor.frame.api.execute.TaskContext<?,?,?> taskContext)
Initiate.
|
public static final String RFC1123_HEADER_DATE_FORMAT
public HttpServletRequestImpl(net.officefloor.plugin.socket.server.http.ServerHttpConnection connection,
HttpRequestState requestAttributes,
HttpServletSecurity security,
String sessionIdIdentifierName,
HttpSession session,
ServletContext servletContext,
Locale defaultLocale,
net.officefloor.frame.api.execute.TaskContext<?,?,?> taskContext)
throws IOException,
HttpRequestTokeniseException
connection - ServerHttpConnection.requestAttributes - HttpRequestState.security - HttpServletSecurity.sessionIdIdentifierName - Name of identifier (e.g. cookie or parameter name) providing
the session Id.session - HttpSession.servletContext - ServletContext.defaultLocale - Default Locale if not specified.taskContext - TaskContext.IOException - If fails to read data from the HttpRequest.HttpRequestTokeniseException - If fails to tokenise the HttpRequest.public void forward(String workName, String taskName, Object parameter) throws ServletException
ServletRequestForwarderServletRequest.forward in interface ServletRequestForwarderworkName - Name of Work to forward the ServletRequest.taskName - Name of Task on the Work to forward the
ServletRequest.parameter - Parameter for the Task.ServletException - If fails to forward the ServletRequest.public String getContextPath()
getContextPath in interface HttpServletRequestpublic String getMethod()
getMethod in interface HttpServletRequestpublic String getServletPath()
getServletPath in interface HttpServletRequestpublic String getPathInfo()
getPathInfo in interface HttpServletRequestpublic String getPathTranslated()
getPathTranslated in interface HttpServletRequestpublic String getQueryString()
getQueryString in interface HttpServletRequestpublic String getRequestURI()
getRequestURI in interface HttpServletRequestpublic StringBuffer getRequestURL()
getRequestURL in interface HttpServletRequestpublic int getContentLength()
getContentLength in interface ServletRequestpublic String getParameter(String name)
getParameter in interface ServletRequestpublic Map getParameterMap()
getParameterMap in interface ServletRequestpublic Enumeration getParameterNames()
getParameterNames in interface ServletRequestpublic String[] getParameterValues(String name)
getParameterValues in interface ServletRequestpublic String getProtocol()
getProtocol in interface ServletRequestpublic BufferedReader getReader() throws IOException
getReader in interface ServletRequestIOExceptionpublic ServletInputStream getInputStream() throws IOException
getInputStream in interface ServletRequestIOExceptionpublic String getScheme()
getScheme in interface ServletRequestpublic Cookie[] getCookies()
getCookies in interface HttpServletRequestpublic long getDateHeader(String name)
getDateHeader in interface HttpServletRequestpublic String getHeader(String name)
getHeader in interface HttpServletRequestpublic Enumeration getHeaderNames()
getHeaderNames in interface HttpServletRequestpublic Enumeration getHeaders(String name)
getHeaders in interface HttpServletRequestpublic int getIntHeader(String name)
getIntHeader in interface HttpServletRequestpublic String getServerName()
getServerName in interface ServletRequestpublic int getServerPort()
getServerPort in interface ServletRequestpublic String getRequestedSessionId()
getRequestedSessionId in interface HttpServletRequestpublic HttpSession getSession()
getSession in interface HttpServletRequestpublic HttpSession getSession(boolean create)
getSession in interface HttpServletRequestpublic boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie in interface HttpServletRequestpublic boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL in interface HttpServletRequestpublic boolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface HttpServletRequestpublic Object getAttribute(String name)
getAttribute in interface ServletRequestpublic Enumeration getAttributeNames()
getAttributeNames in interface ServletRequestpublic void removeAttribute(String name)
removeAttribute in interface ServletRequestpublic void setAttribute(String name, Object object)
setAttribute in interface ServletRequestpublic String getCharacterEncoding()
getCharacterEncoding in interface ServletRequestpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException
setCharacterEncoding in interface ServletRequestUnsupportedEncodingExceptionpublic String getContentType()
getContentType in interface ServletRequestpublic Locale getLocale()
getLocale in interface ServletRequestpublic Enumeration getLocales()
getLocales in interface ServletRequestpublic String getLocalAddr()
getLocalAddr in interface ServletRequestpublic String getLocalName()
getLocalName in interface ServletRequestpublic int getLocalPort()
getLocalPort in interface ServletRequestpublic String getRemoteAddr()
getRemoteAddr in interface ServletRequestpublic String getRemoteHost()
getRemoteHost in interface ServletRequestpublic int getRemotePort()
getRemotePort in interface ServletRequestpublic RequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher in interface ServletRequestpublic boolean isSecure()
isSecure in interface ServletRequestpublic String getAuthType()
getAuthType in interface HttpServletRequestpublic Principal getUserPrincipal()
getUserPrincipal in interface HttpServletRequestpublic String getRemoteUser()
getRemoteUser in interface HttpServletRequestpublic boolean isUserInRole(String role)
isUserInRole in interface HttpServletRequestpublic String getRealPath(String path)
getRealPath in interface ServletRequestpublic boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl in interface HttpServletRequestpublic AsyncContext getAsyncContext()
getAsyncContext in interface ServletRequestpublic DispatcherType getDispatcherType()
getDispatcherType in interface ServletRequestpublic ServletContext getServletContext()
getServletContext in interface ServletRequestpublic boolean isAsyncStarted()
isAsyncStarted in interface ServletRequestpublic boolean isAsyncSupported()
isAsyncSupported in interface ServletRequestpublic AsyncContext startAsync() throws IllegalStateException
startAsync in interface ServletRequestIllegalStateExceptionpublic AsyncContext startAsync(ServletRequest arg0, ServletResponse arg1) throws IllegalStateException
startAsync in interface ServletRequestIllegalStateExceptionpublic boolean authenticate(HttpServletResponse arg0) throws IOException, ServletException
authenticate in interface HttpServletRequestIOExceptionServletExceptionpublic Part getPart(String arg0) throws IOException, ServletException
getPart in interface HttpServletRequestIOExceptionServletExceptionpublic Collection<Part> getParts() throws IOException, ServletException
getParts in interface HttpServletRequestIOExceptionServletExceptionpublic void login(String arg0, String arg1) throws ServletException
login in interface HttpServletRequestServletExceptionpublic void logout()
throws ServletException
logout in interface HttpServletRequestServletExceptionpublic long getContentLengthLong()
getContentLengthLong in interface ServletRequestpublic String changeSessionId()
changeSessionId in interface HttpServletRequestpublic <T extends HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, ServletException
upgrade in interface HttpServletRequestIOExceptionServletExceptionCopyright © 2005–2015. All rights reserved.