com.sun.xml.wss.impl.configuration
Class StaticApplicationContext

java.lang.Object
  extended by com.sun.xml.wss.impl.configuration.StaticApplicationContext
All Implemented Interfaces:
StaticPolicyContext

public final class StaticApplicationContext
extends java.lang.Object
implements StaticPolicyContext

This class represents the static context associated with any Security Policy elements defined in a xwss:JAXRPCSecurity configuration. The xwss:JAXRPCSecurity element supports Security Policies to be specifed at three levels

Accordingly the class StaticApplicationContext has methods to identify if the context represents a Service, Port or Operation, and stores the corresponding context identifiers


Constructor Summary
StaticApplicationContext()
          Default constructor
StaticApplicationContext(StaticApplicationContext context)
          Copy constructor
 
Method Summary
 void copy(StaticApplicationContext ctx)
          Copy operator
 boolean equals(java.lang.Object obj)
          equals operator
 boolean equals(StaticApplicationContext ctx)
          equals operator
 java.lang.String getApplicationContextRoot()
           
 java.lang.String getOperationIdentifier()
           
 java.lang.String getPortIdentifier()
           
 java.lang.String getServiceIdentifier()
           
 java.lang.String getUUID()
           
 int hashCode()
           
 boolean isOperation()
           
 void isOperation(boolean isOperation)
          Set if this context represents an Operation
 boolean isPort()
           
 void isPort(boolean isPort)
          Set if this context represents a Port
 boolean isService()
           
 void isService(boolean isService)
          Set if this context represents a Service
 void setApplicationContextRoot(java.lang.String ctxRoot)
           
 void setOperationIdentifier(java.lang.String operation)
          Set the Operation identifier
 void setPortIdentifier(java.lang.String port)
          Set the port identifier
 void setServiceIdentifier(java.lang.String service)
          Set the service identifier
 void setUUID(java.lang.String uuid)
          Set the Unique ID associated with the Service context
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(java.lang.String service)
Set the service identifier

Parameters:
service - the Service Identifier

getServiceIdentifier

public java.lang.String getServiceIdentifier()
Returns:
the service identifier

setPortIdentifier

public void setPortIdentifier(java.lang.String port)
Set the port identifier

Parameters:
port - the Port Identifier

getPortIdentifier

public java.lang.String getPortIdentifier()
Returns:
the port identifier

setOperationIdentifier

public void setOperationIdentifier(java.lang.String operation)
Set the Operation identifier

Parameters:
operation - the Operation Identifier

getOperationIdentifier

public java.lang.String getOperationIdentifier()
Returns:
the Operation identifier

setUUID

public void setUUID(java.lang.String uuid)
Set the Unique ID associated with the Service context

Parameters:
uuid - the unique id associated with the Service

getUUID

public java.lang.String getUUID()
Returns:
the Unique ID associated with the Service context

setApplicationContextRoot

public void setApplicationContextRoot(java.lang.String ctxRoot)
Parameters:
ctxRoot - the Application Context Root/Identifier for the application

getApplicationContextRoot

public java.lang.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(java.lang.Object obj)
equals operator

Overrides:
equals in class java.lang.Object
Parameters:
obj - the Object to be compared with this context for equality
Returns:
true if the argument object is equal to this context

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()
Overrides:
hashCode in class java.lang.Object
Returns:
hashcode for this context

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright ? 2005 Sun Microsystems, Inc. All Rights Reserved.