|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.policy.PolicySubject
public final class PolicySubject
A PolicySubject is an entity (e.g., a port, operation, binding, service) with which a policy can be associated.
| Constructor Summary | |
|---|---|
PolicySubject(Object subject,
Collection<Policy> policies)
Constructs a policy subject instance. |
|
PolicySubject(Object subject,
Policy policy)
Constructs a policy subject instance. |
|
| Method Summary | |
|---|---|
void |
attach(Policy policy)
Attaches another Policy instance to the policy subject. |
Policy |
getEffectivePolicy(PolicyMerger merger)
Returns the effective policy of the subject, i.e. |
Object |
getSubject()
A unique identifier of the subject Subjects may not always be uniquely identifiable. |
String |
toString()
An Object.toString() method override. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PolicySubject(Object subject,
Policy policy)
throws IllegalArgumentException
subject - object to which the policies are attached. Must not be null.policy - first policy attached to the subject. Must not be null.
IllegalArgumentException - in case any of the arguments is null.
public PolicySubject(Object subject,
Collection<Policy> policies)
throws IllegalArgumentException
subject - object to which the policies are attached. Must not be null.policies - first policy attached to the subject. Must not be null.
IllegalArgumentException - in case any of the arguments is null or
in case policies argument represents empty collection.| Method Detail |
|---|
public void attach(Policy policy)
policy - new policy instance to be attached to this subject
IllegalArgumentException - in case policy argument is null.
public Policy getEffectivePolicy(PolicyMerger merger)
throws PolicyException
PolicyExceptionpublic Object getSubject()
public String toString()
Object.toString() method override.
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||