Class StaticApplicationContext
- java.lang.Object
-
- com.sun.xml.wss.impl.configuration.StaticApplicationContext
-
- All Implemented Interfaces:
StaticPolicyContext
public final class StaticApplicationContext extends Object implements StaticPolicyContext
This class represents the static context associated with any Security Policy elements defined in axwss:JAXRPCSecurityconfiguration. Thexwss:JAXRPCSecurityelement supports Security Policies to be specifed at three levels- At a JAXRPC
Servicelevel - At a JAXRPC
Portlevel - At a JAXRPC
Operationlevel
-
-
Constructor Summary
Constructors Constructor Description StaticApplicationContext()Default constructorStaticApplicationContext(StaticApplicationContext context)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(StaticApplicationContext ctx)Copy operatorbooleanequals(StaticApplicationContext ctx)equals operatorbooleanequals(Object obj)equals operatorStringgetApplicationContextRoot()StringgetOperationIdentifier()StringgetPortIdentifier()StringgetServiceIdentifier()StringgetUUID()inthashCode()booleanisOperation()voidisOperation(boolean isOperation)Set if this context represents an OperationbooleanisPort()voidisPort(boolean isPort)Set if this context represents a PortbooleanisService()voidisService(boolean isService)Set if this context represents a ServicevoidsetApplicationContextRoot(String ctxRoot)voidsetOperationIdentifier(String operation)Set the Operation identifiervoidsetPortIdentifier(String port)Set the port identifiervoidsetServiceIdentifier(String service)Set the service identifiervoidsetUUID(String uuid)Set the Unique ID associated with the Service contextStringtoString()
-
-
-
Constructor Detail
-
StaticApplicationContext
public StaticApplicationContext()
Default constructor
-
StaticApplicationContext
public StaticApplicationContext(StaticApplicationContext context)
Copy constructor- Parameters:
context- StaticApplicationContext
-
-
Method Detail
-
isService
public void isService(boolean isService)
Set if this context represents a Service- Parameters:
isService- set to true if this is a service level context
-
isService
public boolean isService()
- Returns:
- true if this context represents a Service
-
isPort
public void isPort(boolean isPort)
Set if this context represents a Port- Parameters:
isPort- set to true if this is a port level context
-
isPort
public boolean isPort()
- Returns:
- true if this context represents a Port
-
isOperation
public void isOperation(boolean isOperation)
Set if this context represents an Operation- Parameters:
isOperation- set to true if this is an Operation level context
-
isOperation
public boolean isOperation()
- Returns:
- true if this context represents an Operation
-
setServiceIdentifier
public void setServiceIdentifier(String service)
Set the service identifier- Parameters:
service- the Service Identifier
-
getServiceIdentifier
public String getServiceIdentifier()
- Returns:
- the service identifier
-
setPortIdentifier
public void setPortIdentifier(String port)
Set the port identifier- Parameters:
port- the Port Identifier
-
getPortIdentifier
public String getPortIdentifier()
- Returns:
- the port identifier
-
setOperationIdentifier
public void setOperationIdentifier(String operation)
Set the Operation identifier- Parameters:
operation- the Operation Identifier
-
getOperationIdentifier
public String getOperationIdentifier()
- Returns:
- the Operation identifier
-
setUUID
public void setUUID(String uuid)
Set the Unique ID associated with the Service context- Parameters:
uuid- the unique id associated with the Service
-
getUUID
public String getUUID()
- Returns:
- the Unique ID associated with the Service context
-
setApplicationContextRoot
public void setApplicationContextRoot(String ctxRoot)
- Parameters:
ctxRoot- the Application Context Root/Identifier for the application
-
getApplicationContextRoot
public String getApplicationContextRoot()
- Returns:
- the Application Context Root/Identifier for the application (if any)
-
copy
public void copy(StaticApplicationContext ctx)
Copy operator- Parameters:
ctx- the StaticApplicationContext to copy from
-
equals
public boolean equals(Object obj)
equals operator
-
equals
public boolean equals(StaticApplicationContext ctx)
equals operator- Parameters:
ctx- the StaticApplicationContext to be compared with this context for equality- Returns:
- true if the argument context is equal to this context
-
hashCode
public int hashCode()
-
-