public class ExtendedHttpServletRequestWrapper extends javax.servlet.http.HttpServletRequestWrapper implements ExtendedHttpServletRequest
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORIZATION |
static String |
BASIC |
static String |
FROM |
FAILED, IMMUTABLE_NULL_SET, SUCCEEDED| Constructor and Description |
|---|
ExtendedHttpServletRequestWrapper(javax.servlet.http.HttpServletRequest wrappedRequest) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(String authority,
Map attributes) |
void |
audit() |
void |
auditInnerMap(Map map) |
void |
auditInnerSet(Set set) |
void |
auditOuterMap(Map map,
String desc) |
Map |
getAllAttributes() |
boolean |
getAttributeDefined(String key) |
Set |
getAttributeValues(String key) |
String |
getAuthority() |
String |
getAuthorizationHeader() |
String |
getFromHeader() |
String |
getPassword() |
String |
getRealPath(String path)
Deprecated.
As of Version 2.1 of the Java Servlet API, use
ServletContext.getRealPath(java.lang.String). |
String |
getRemoteUser() |
String |
getUser() |
Principal |
getUserPrincipal() |
boolean |
hasAttributeValues(String key) |
boolean |
isAttributeDefined(String key) |
boolean |
isAuthenticated() |
boolean |
isRequestedSessionIdFromUrl()
Deprecated.
As of Version 2.1 of the Java Servlet API, use
HttpServletRequestWrapper.isRequestedSessionIdFromURL(). |
boolean |
isSecure() |
protected boolean |
isSponsoredUserRequested() |
boolean |
isUserSponsored() |
void |
lockSponsoredUser() |
void |
lockWrapper() |
void |
setAuthenticated(Principal userPrincipal,
String authority) |
void |
setSponsoredUser() |
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRolegetAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, removeAttribute, setAttribute, setCharacterEncoding, setRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRolegetAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, removeAttribute, setAttribute, setCharacterEncodingpublic static final String BASIC
public static final String AUTHORIZATION
public static final String FROM
public final void lockWrapper()
throws Exception
lockWrapper in interface ExtendedHttpServletRequestExceptionpublic void setSponsoredUser()
throws Exception
setSponsoredUser in interface ExtendedHttpServletRequestExceptionpublic void lockSponsoredUser()
throws Exception
lockSponsoredUser in interface ExtendedHttpServletRequestExceptionpublic void setAuthenticated(Principal userPrincipal, String authority) throws Exception
setAuthenticated in interface ExtendedHttpServletRequestExceptionpublic Principal getUserPrincipal()
getUserPrincipal in interface javax.servlet.http.HttpServletRequestgetUserPrincipal in class javax.servlet.http.HttpServletRequestWrapperpublic final boolean isUserSponsored()
isUserSponsored in interface ExtendedHttpServletRequestprotected boolean isSponsoredUserRequested()
public final boolean isAuthenticated()
isAuthenticated in interface ExtendedHttpServletRequestpublic String getRemoteUser()
getRemoteUser in interface javax.servlet.http.HttpServletRequestgetRemoteUser in class javax.servlet.http.HttpServletRequestWrapperpublic final void auditInnerMap(Map map)
public final void auditInnerSet(Set set)
public void audit()
audit in interface ExtendedHttpServletRequestpublic boolean getAttributeDefined(String key) throws AuthzOperationalException
AuthzOperationalExceptionpublic Set getAttributeValues(String key) throws AuthzOperationalException
getAttributeValues in interface ExtendedHttpServletRequestAuthzOperationalExceptionpublic boolean hasAttributeValues(String key) throws AuthzOperationalException
hasAttributeValues in interface ExtendedHttpServletRequestAuthzOperationalExceptionpublic boolean isAttributeDefined(String key) throws AuthzOperationalException
isAttributeDefined in interface ExtendedHttpServletRequestAuthzOperationalExceptionpublic void addAttributes(String authority, Map attributes) throws Exception
addAttributes in interface ExtendedHttpServletRequestExceptionpublic Map getAllAttributes() throws AuthzOperationalException
getAllAttributes in interface ExtendedHttpServletRequestAuthzOperationalExceptionpublic final String getAuthorizationHeader()
public final String getFromHeader()
getFromHeader in interface ExtendedHttpServletRequestpublic final String getUser() throws Exception
getUser in interface ExtendedHttpServletRequestExceptionpublic final String getPassword() throws Exception
getPassword in interface ExtendedHttpServletRequestExceptionpublic final String getAuthority()
getAuthority in interface ExtendedHttpServletRequest@Deprecated public String getRealPath(String path)
ServletContext.getRealPath(java.lang.String).getRealPath in interface javax.servlet.ServletRequestgetRealPath in class javax.servlet.ServletRequestWrapper@Deprecated public boolean isRequestedSessionIdFromUrl()
HttpServletRequestWrapper.isRequestedSessionIdFromURL().isRequestedSessionIdFromUrl in interface javax.servlet.http.HttpServletRequestisRequestedSessionIdFromUrl in class javax.servlet.http.HttpServletRequestWrapperpublic boolean isSecure()
isSecure in interface javax.servlet.ServletRequestisSecure in class javax.servlet.ServletRequestWrapperCopyright © 2013 DuraSpace. All Rights Reserved.