Class WebResource
- java.lang.Object
-
- org.jboss.security.authorization.resources.JavaEEResource
-
- org.jboss.security.authorization.resources.WebResource
-
- All Implemented Interfaces:
Resource
public class WebResource extends JavaEEResource
Represents a Resource for the Web Layer- Since:
- Jun 18, 2006
- Version:
- $Revision: 62260 $
- Author:
- Anil Saldhana
-
-
Field Summary
Fields Modifier and Type Field Description static StringWEB_AUDIT_FLAGSystem Property setting to configure the web audit off = turn it off headers = audit the headers cookies = audit the cookie parameters = audit the parameters attributes = audit the attributes headers,cookies,parameters = audit the headers,cookie and parameters headers,cookies = audit the headers and cookies and so on Note: If this flag is not set in the system property, then we get no audit data for the web request-
Fields inherited from class org.jboss.security.authorization.resources.JavaEEResource
callerRunAsIdentity, callerSubject, codeSource, map, policyContextID, principal, securityRoleReferences
-
-
Constructor Summary
Constructors Constructor Description WebResource()Create a new WebResource.WebResource(Map<String,Object> map)Create a new WebResource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCanonicalRequestURI()ResourceTypegetLayer()StringgetServletName()The Servlet for which the authorization request is forjavax.servlet.ServletRequestgetServletRequest()javax.servlet.ServletResponsegetServletResponse()voidsetCanonicalRequestURI(String canonicalRequestURI)voidsetServletName(String servletName)voidsetServletRequest(javax.servlet.ServletRequest servletRequest)voidsetServletResponse(javax.servlet.ServletResponse servletResponse)StringtoString()-
Methods inherited from class org.jboss.security.authorization.resources.JavaEEResource
add, getCallerRunAsIdentity, getCallerSubject, getCodeSource, getMap, getPolicyContextID, getPrincipal, getSecurityRoleReferences, setCallerRunAsIdentity, setCallerSubject, setCodeSource, setPolicyContextID, setPrincipal, setSecurityRoleReferences
-
-
-
-
Field Detail
-
WEB_AUDIT_FLAG
public static final String WEB_AUDIT_FLAG
System Property setting to configure the web audit off = turn it off headers = audit the headers cookies = audit the cookie parameters = audit the parameters attributes = audit the attributes headers,cookies,parameters = audit the headers,cookie and parameters headers,cookies = audit the headers and cookies and so on Note: If this flag is not set in the system property, then we get no audit data for the web request- See Also:
- Constant Field Values
-
-
Method Detail
-
getLayer
public ResourceType getLayer()
- Specified by:
getLayerin interfaceResource- Specified by:
getLayerin classJavaEEResource- See Also:
Resource.getLayer()
-
getCanonicalRequestURI
public String getCanonicalRequestURI()
-
setCanonicalRequestURI
public void setCanonicalRequestURI(String canonicalRequestURI)
-
getServletRequest
public javax.servlet.ServletRequest getServletRequest()
-
setServletRequest
public void setServletRequest(javax.servlet.ServletRequest servletRequest)
-
getServletResponse
public javax.servlet.ServletResponse getServletResponse()
-
setServletResponse
public void setServletResponse(javax.servlet.ServletResponse servletResponse)
-
getServletName
public String getServletName()
The Servlet for which the authorization request is for- Returns:
-
setServletName
public void setServletName(String servletName)
-
-