| java.lang.Object com.sun.xml.ws.policy.PolicySubject
PolicySubject | final public class PolicySubject (Code) | | A PolicySubject is an entity (e.g., a port, operation, binding,
service) with which a policy can be associated.
|
Constructor Summary | |
public | PolicySubject(Object subject, Policy policy) Constructs a policy subject instance.
Parameters: subject - object to which the policies are attached. | public | PolicySubject(Object subject, Collection<Policy> policies) Constructs a policy subject instance.
Parameters: subject - object to which the policies are attached. |
PolicySubject | public PolicySubject(Object subject, Policy policy) throws IllegalArgumentException(Code) | | Constructs a policy subject instance.
Parameters: subject - object to which the policies are attached. Must not be null . Parameters: policy - first policy attached to the subject. Must not be null . throws: IllegalArgumentException - in case any of the arguments is null . |
PolicySubject | public PolicySubject(Object subject, Collection<Policy> policies) throws IllegalArgumentException(Code) | | Constructs a policy subject instance.
Parameters: subject - object to which the policies are attached. Must not be null . Parameters: policies - first policy attached to the subject. Must not be null . throws: IllegalArgumentException - in case any of the arguments is null or in case policies argument represents empty collection. |
attach | public void attach(Policy policy)(Code) | | Attaches another Policy instance to the policy subject.
Parameters: policy - new policy instance to be attached to this subject throws: IllegalArgumentException - in case policy argument is null . |
getEffectivePolicy | public Policy getEffectivePolicy(PolicyMerger merger) throws PolicyException(Code) | | Returns the effective policy of the subject, i.e. all policies of the subject
merged together.
effective policy of the subject |
getSubject | public Object getSubject()(Code) | | A unique identifier of the subject
Subjects may not always be uniquely identifiable. Also, once the subject is
assigned to a scope, its identity may not matter anymore. Therefore this
may be null.
|
toString | public String toString()(Code) | | An
Object.toString() method override.
|
toString | StringBuffer toString(int indentLevel, StringBuffer buffer)(Code) | | A helper method that appends indented string representation of this instance to the input string buffer.
Parameters: indentLevel - indentation level to be used. Parameters: buffer - buffer to be used for appending string representation of this instance modified buffer containing new string representation of the instance |
|
|