public class RequestFacade
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Request |
request
The wrapped request.
|
protected static StringManager |
sm
The string manager for this package.
|
Constructor and Description |
---|
RequestFacade(Request request)
Construct a wrapper for the specified request.
|
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(HttpServletResponse response) |
void |
clear()
Clear facade.
|
protected java.lang.Object |
clone()
Prevent cloning the facade.
|
AsyncContext |
getAsyncContext() |
java.lang.Object |
getAttribute(java.lang.String name) |
java.util.Enumeration |
getAttributeNames() |
java.lang.String |
getAuthType() |
java.lang.String |
getCharacterEncoding() |
int |
getContentLength() |
java.lang.String |
getContentType() |
java.lang.String |
getContextPath() |
Cookie[] |
getCookies() |
long |
getDateHeader(java.lang.String name) |
DispatcherType |
getDispatcherType() |
ApplicationFilterChain |
getFilterChain()
Get filter chain associated with the request.
|
java.lang.String |
getHeader(java.lang.String name) |
java.util.Enumeration |
getHeaderNames() |
java.util.Enumeration |
getHeaders(java.lang.String name) |
ServletInputStream |
getInputStream() |
int |
getIntHeader(java.lang.String name) |
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 name) |
java.util.Map |
getParameterMap() |
java.util.Enumeration |
getParameterNames() |
java.lang.String[] |
getParameterValues(java.lang.String name) |
Part |
getPart(java.lang.String name) |
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 path) |
java.lang.String |
getRemoteAddr() |
java.lang.String |
getRemoteHost() |
int |
getRemotePort() |
java.lang.String |
getRemoteUser() |
RequestDispatcher |
getRequestDispatcher(java.lang.String path) |
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 create) |
java.security.Principal |
getUserPrincipal() |
boolean |
hasSendfile() |
boolean |
isAsyncStarted() |
boolean |
isAsyncSupported() |
boolean |
isRequestedSessionIdFromCookie() |
boolean |
isRequestedSessionIdFromUrl() |
boolean |
isRequestedSessionIdFromURL() |
boolean |
isRequestedSessionIdValid() |
boolean |
isSecure() |
boolean |
isUserInRole(java.lang.String role) |
void |
login(java.lang.String username,
java.lang.String password) |
void |
logout() |
void |
nextFilterChain()
Next filter chain.
|
void |
releaseFilterChain()
Release the current filter chain.
|
void |
removeAttribute(java.lang.String name) |
void |
setAttribute(java.lang.String name,
java.lang.Object o) |
void |
setCharacterEncoding(java.lang.String env) |
void |
setFilterChain(ApplicationFilterChain filterChain)
Set filter chain associated with the request.
|
AsyncContext |
startAsync() |
AsyncContext |
startAsync(ServletRequest servletRequest,
ServletResponse servletResponse) |
protected Request request
protected static StringManager sm
public RequestFacade(Request request)
request
- The request to be wrappedpublic void clear()
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.Object getAttribute(java.lang.String name)
public java.util.Enumeration getAttributeNames()
public java.lang.String getCharacterEncoding()
public void setCharacterEncoding(java.lang.String env) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public int getContentLength()
public java.lang.String getContentType()
public ServletInputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getParameter(java.lang.String name)
public java.util.Enumeration getParameterNames()
public java.lang.String[] getParameterValues(java.lang.String name)
public java.util.Map getParameterMap()
public java.lang.String getProtocol()
public java.lang.String getScheme()
public java.lang.String getServerName()
public int getServerPort()
public java.io.BufferedReader getReader() throws java.io.IOException
java.io.IOException
public java.lang.String getRemoteAddr()
public java.lang.String getRemoteHost()
public void setAttribute(java.lang.String name, java.lang.Object o)
public void removeAttribute(java.lang.String name)
public java.util.Locale getLocale()
public java.util.Enumeration getLocales()
public boolean isSecure()
public RequestDispatcher getRequestDispatcher(java.lang.String path)
public java.lang.String getRealPath(java.lang.String path)
public java.lang.String getAuthType()
public Cookie[] getCookies()
public long getDateHeader(java.lang.String name)
public java.lang.String getHeader(java.lang.String name)
public java.util.Enumeration getHeaders(java.lang.String name)
public java.util.Enumeration getHeaderNames()
public int getIntHeader(java.lang.String name)
public java.lang.String getMethod()
public java.lang.String getPathInfo()
public java.lang.String getPathTranslated()
public java.lang.String getContextPath()
public java.lang.String getQueryString()
public java.lang.String getRemoteUser()
public boolean isUserInRole(java.lang.String role)
public java.security.Principal getUserPrincipal()
public java.lang.String getRequestedSessionId()
public java.lang.String getRequestURI()
public java.lang.StringBuffer getRequestURL()
public java.lang.String getServletPath()
public HttpSession getSession(boolean create)
public HttpSession getSession()
public boolean isRequestedSessionIdValid()
public boolean isRequestedSessionIdFromCookie()
public boolean isRequestedSessionIdFromURL()
public boolean isRequestedSessionIdFromUrl()
public java.lang.String getLocalAddr()
public java.lang.String getLocalName()
public int getLocalPort()
public int getRemotePort()
public AsyncContext getAsyncContext()
public ServletContext getServletContext()
public boolean isAsyncStarted()
public boolean isAsyncSupported()
public AsyncContext startAsync() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public DispatcherType getDispatcherType()
public ApplicationFilterChain getFilterChain()
public void setFilterChain(ApplicationFilterChain filterChain)
filterChain
- new filter chainpublic void nextFilterChain()
public void releaseFilterChain()
public boolean authenticate(HttpServletResponse response) throws java.io.IOException, ServletException
java.io.IOException
ServletException
public void login(java.lang.String username, java.lang.String password) throws ServletException
ServletException
public void logout() throws ServletException
ServletException
public Part getPart(java.lang.String name) 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 boolean hasSendfile()