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 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-
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 String
getCanonicalRequestURI()
ResourceType
getLayer()
String
getServletName()
The Servlet for which the authorization request is forjavax.servlet.ServletRequest
getServletRequest()
javax.servlet.ServletResponse
getServletResponse()
void
setCanonicalRequestURI(String canonicalRequestURI)
void
setServletName(String servletName)
void
setServletRequest(javax.servlet.ServletRequest servletRequest)
void
setServletResponse(javax.servlet.ServletResponse servletResponse)
String
toString()
-
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:
getLayer
in interfaceResource
- Specified by:
getLayer
in 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)
-
-