|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
org.jasig.portal.channels.jsp.HttpRequestFacade
@Deprecated public class HttpRequestFacade
An HttpServletRequestWrapper that prevents changes to the underlying request but provides access to most of its objects. Adding an attribute to this wrapper will make that attribute available to all users of this wrapper but will not make it available to any users of the underlying request. If an attribute is placed on this wrapper having the same key as an attribute in the underlying request the underlying request's attribute will not be accessible. Cookies are available from this object but are clones of those in the wrapped object so that the wrapped ones are preserved untouched. Access to the reader or input stream of the underlying object is denied to prevent corruption of the wrapped request.
| Field Summary |
|---|
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Constructor Summary | |
|---|---|
HttpRequestFacade(HttpServletRequest request)
Deprecated. Instantiate an HttpRequestFacade wrapped around the underlying request to provide access to request information but allow separation of channel specific aspects from other channels like request attributes. |
|
| Method Summary | |
|---|---|
Object |
getAttribute(String key)
Deprecated. Returns the value of the specified key. |
Enumeration |
getAttributeNames()
Deprecated. Returns an Enumeration of attribute names on this object and those of the wrapped request object. |
String |
getCharacterEncoding()
Deprecated. Return the encoding specified in the wrapped request object. |
Cookie[] |
getCookies()
Deprecated. Return a modifiable array of cookies whose changes will be discarded and not pushed into the cookies of the wrapped request. |
ServletInputStream |
getInputStream()
Deprecated. Throws an UnsupportedOperationException since this method won't be called for our usage of requests in the JSP channel type and exposing the input stream of the underlying request essentially corrupts that request object. |
BufferedReader |
getReader()
Deprecated. Throws an UnsupportedOperationException since this method won't be called for our usage of requests in the JSP channel type and exposing the reader of the underlying request essentially corrupts that request object. |
void |
removeAttribute(String arg0)
Deprecated. Remove an item from the private attribute set for this wrapper. |
void |
setAttribute(String arg0,
Object arg1)
Deprecated. Overridden to store attributes into the private attribute set of this object and not into the underlying request object. |
void |
setCharacterEncoding(String arg0)
Deprecated. Throws an UnsupportedOperationException since this method won't be called for our usage of requests in the JSP channel type. |
| Methods inherited from class javax.servlet.ServletRequestWrapper |
|---|
getContentLength, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, setRequest |
| 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 |
|---|
getContentLength, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure |
| Constructor Detail |
|---|
public HttpRequestFacade(HttpServletRequest request)
request - | Method Detail |
|---|
public Object getAttribute(String key)
getAttribute in interface ServletRequestgetAttribute in class ServletRequestWrapperpublic Enumeration getAttributeNames()
getAttributeNames in interface ServletRequestgetAttributeNames in class ServletRequestWrapperpublic void removeAttribute(String arg0)
removeAttribute in interface ServletRequestremoveAttribute in class ServletRequestWrapperServletRequest.removeAttribute(java.lang.String)
public void setAttribute(String arg0,
Object arg1)
setAttribute in interface ServletRequestsetAttribute in class ServletRequestWrapperpublic Cookie[] getCookies()
getCookies in interface HttpServletRequestgetCookies in class HttpServletRequestWrapperHttpServletRequest.getCookies()
public ServletInputStream getInputStream()
throws IOException
getInputStream in interface ServletRequestgetInputStream in class ServletRequestWrapperIOException
public BufferedReader getReader()
throws IOException
getReader in interface ServletRequestgetReader in class ServletRequestWrapperIOException
public void setCharacterEncoding(String arg0)
throws UnsupportedEncodingException
setCharacterEncoding in interface ServletRequestsetCharacterEncoding in class ServletRequestWrapperUnsupportedEncodingExceptionpublic String getCharacterEncoding()
getCharacterEncoding in interface ServletRequestgetCharacterEncoding in class ServletRequestWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||