Class DynamicApplicationContext
java.lang.Object
com.sun.xml.wss.impl.policy.DynamicPolicyContext
com.sun.xml.wss.impl.configuration.DynamicApplicationContext
Represents a concrete SecurityPolicy identifier context resolved at runtime,
An XWS-Security
DynamicPolicyCallback is passed an instance of
a DynamicApplicationContext. A callback Handler handling
DynamicPolicyCallback can make use of information in this context
to dynamically determine the Security policy applicable for a request/response-
Field Summary
Fields inherited from class com.sun.xml.wss.impl.policy.DynamicPolicyContext
properties -
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty DynamicApplicationContextCreate a DynamicApplicationContext with an associated StaticPolicyContextcontext -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals operatorbooleanvoidinBoundMessage(boolean inBound) Set the Message direction (inbound/outbound) to which this context corresponds tovoidsetMessageIdentifier(String messageIdentifier) Set the messageIdentifier for this Message associated with this contextvoidset the associated StaticPolicyContext for this contextMethods inherited from class com.sun.xml.wss.impl.policy.DynamicPolicyContext
containsProperty, getProperty, getPropertyNames, removeProperty, setProperty
-
Constructor Details
-
DynamicApplicationContext
public DynamicApplicationContext()Create an empty DynamicApplicationContext -
DynamicApplicationContext
Create a DynamicApplicationContext with an associated StaticPolicyContextcontext- Parameters:
context- the associated StaticPolicyContext
-
-
Method Details
-
setMessageIdentifier
Set the messageIdentifier for this Message associated with this context- Parameters:
messageIdentifier-
-
getMessageIdentifier
- Returns:
- messageIdentifier for the Message associated with this context
-
inBoundMessage
public void inBoundMessage(boolean inBound) Set the Message direction (inbound/outbound) to which this context corresponds to- Parameters:
inBound- flag indicating the direction of the message
-
inBoundMessage
public boolean inBoundMessage()- Returns:
- true if the context is for an inbound message
-
setStaticPolicyContext
set the associated StaticPolicyContext for this context- Parameters:
context- StaticPolicyContext
-
getStaticPolicyContext
- Specified by:
getStaticPolicyContextin classDynamicPolicyContext- Returns:
- the associated StaticPolicContext if any, null otherwise
-
getRuntimeProperties
- Returns:
- HashMap of runtime properties in this context
-
equals
equals operator- Parameters:
ctx- DynamicApplicationContext with which to compare for equality- Returns:
- true if ctx is equal to this DynamicApplicationContext
-