Class 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 a xwss:JAXRPCSecurity configuration. The xwss:JAXRPCSecurity element supports Security Policies to be specifed at three levels
    • At a JAXRPC Service level
    • At a JAXRPC Port level
    • At a JAXRPC Operation level
    Accordingly the class StaticApplicationContext has methods to identify if the context represents a Service, Port or Operation, and stores the corresponding context identifiers
    • 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
        Overrides:
        equals in class 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 Object
        Returns:
        hashcode for this context