org.jboss.security.authorization.resources
Class WebResource

java.lang.Object
  extended by org.jboss.security.authorization.resources.JavaEEResource
      extended by org.jboss.security.authorization.resources.WebResource
All Implemented Interfaces:
org.jboss.security.authorization.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
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
WebResource()
          Create a new WebResource.
WebResource(Map<String,Object> map)
          Create a new WebResource.
 
Method Summary
 String getCanonicalRequestURI()
           
 org.jboss.security.authorization.ResourceType getLayer()
           
 String getServletName()
          The Servlet for which the authorization request is for
 javax.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
getCallerRunAsIdentity, getCallerSubject, getCodeSource, getMap, getPolicyContextID, getPrincipal, getSecurityRoleReferences, setCallerRunAsIdentity, setCallerSubject, setCodeSource, setPolicyContextID, setPrincipal, setSecurityRoleReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

WebResource

public WebResource()
Create a new WebResource.


WebResource

public WebResource(Map<String,Object> map)
Create a new WebResource.

Parameters:
map - Contextual Map
Method Detail

getLayer

public org.jboss.security.authorization.ResourceType getLayer()
Specified by:
getLayer in interface org.jboss.security.authorization.Resource
Specified by:
getLayer in class JavaEEResource
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)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss Inc.. All Rights Reserved.