|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.ServletRequestWrapper
org.norther.tammi.spray.filter.chain.ServletRequestWrapper
org.norther.tammi.spray.filter.chain.HttpServletRequestWrapper
org.norther.tammi.spray.protocol.chain.AbstractProtocolRequest
org.norther.tammi.spray.servlet.chain.HttpServletRequestDecorator
public class HttpServletRequestDecorator
A decorator for HttpServletRequest.
| Nested Class Summary | |
|---|---|
protected class |
HttpServletRequestDecorator.ConnectorRequestExtension
The connector extension class. |
| Nested classes/interfaces inherited from class org.norther.tammi.spray.protocol.chain.AbstractProtocolRequest |
|---|
AbstractProtocolRequest.ProtocolRequestExtension |
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.spray.protocol.chain.AbstractProtocolRequest |
|---|
BODY_PARSED, COOKIE_SESSION, HEADERS_PARSED, REQUEST_PARSED, URI_PARSED, URL_SESSION |
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Constructor Summary | |
|---|---|
HttpServletRequestDecorator(ServletRequest req)
Constructs a new decorator. |
|
| Method Summary | |
|---|---|
void |
completed(FilterChainEvent event)
Notifies the object that a filter chain has completed. |
void |
dispose()
Disposes the object after use. |
void |
disposed()
A call back indicating that this instance is not needed any more and can be disposed. |
protected void |
drain()
Drains a HTTP/1.1 request to guarantee a fresh stream for the next round. |
void |
filtered(FilterChainEvent event)
Notifies the object that it has been activated within a filter chain. |
Object |
getAttribute(String name)
|
protected ServletConnection |
getConnection()
Gets the connection of the request. |
protected ServletRequest |
getFilteredRequest()
Gets the filtered request. |
protected Map |
getParsedParameterMap()
Gets the parsed parameters as a map of names and value arrays. |
Principal |
getUserPrincipal()
|
void |
removeAttribute(String name)
|
void |
setAttribute(String name,
Object value)
|
protected void |
setConnection(ServletConnection con)
Sets the connection of the request. |
| Methods inherited from class org.norther.tammi.spray.protocol.chain.AbstractProtocolRequest |
|---|
addParameter, addParameter, addParameterMap, getAuthorityURL, getAuthorityURL, getAuthorityURL, getHttpFilter, getInternalCharacterEncoding, getParameter, getParameterMap, getParameterNames, getParameterValues, getPathTail, getRedirectionURL, getVersion, isAuthentication, isRedirection, isSecureSession, removeParameter, setAuthentication, setParameter, setRedirection, setRedirectionURL |
| Methods inherited from class org.norther.tammi.spray.filter.chain.HttpServletRequestWrapper |
|---|
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, setRequest |
| Methods inherited from class org.norther.tammi.spray.filter.chain.ServletRequestWrapper |
|---|
getExtension, getFilterChain, getFilteredResponse, isDisposed, recycle, recycle, recycled, setExtension |
| Methods inherited from class javax.servlet.ServletRequestWrapper |
|---|
getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, setCharacterEncoding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.ServletRequest |
|---|
getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, setCharacterEncoding |
| Constructor Detail |
|---|
public HttpServletRequestDecorator(ServletRequest req)
c - the servlet connection.req - the decorated request.| Method Detail |
|---|
public void dispose()
Recyclable
dispose in interface Recyclabledispose in class AbstractProtocolRequestpublic void disposed()
Poolable
disposed in interface Poolabledisposed in class ServletRequestWrapperpublic Object getAttribute(String name)
getAttribute in interface ServletRequestgetAttribute in class ServletRequestWrapper
public void setAttribute(String name,
Object value)
setAttribute in interface ServletRequestsetAttribute in class ServletRequestWrapperpublic void removeAttribute(String name)
removeAttribute in interface ServletRequestremoveAttribute in class ServletRequestWrapperpublic Principal getUserPrincipal()
getUserPrincipal in interface HttpServletRequestgetUserPrincipal in class HttpServletRequestWrapperpublic void filtered(FilterChainEvent event)
FilterChainListener
filtered in interface FilterChainListenerfiltered in class ServletRequestWrapperevent - the filter chain event.public void completed(FilterChainEvent event)
FilterChainListener
completed in interface FilterChainListenercompleted in class ServletRequestWrapperevent - the filter chain event.protected void drain()
AbstractProtocolRequest
drain in class AbstractProtocolRequestprotected Map getParsedParameterMap()
AbstractProtocolRequest
getParsedParameterMap in class AbstractProtocolRequestprotected ServletRequest getFilteredRequest()
ServletRequestWrapper
getFilteredRequest in class ServletRequestWrapperprotected ServletConnection getConnection()
protected void setConnection(ServletConnection con)
con - the connection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||