| Package | Description |
|---|---|
| com.sun.xml.ws.policy |
The root package of public policy API.
|
| com.sun.xml.ws.policy.privateutil |
This package contains utility classes that are not part of the public Policy API.
|
| com.sun.xml.ws.policy.sourcemodel |
The part of public policy API that defines the classes and interfaces dealing with
the policy tree structure (policy source model) creation and manipulation.
|
| com.sun.xml.ws.policy.sourcemodel.attach | |
| com.sun.xml.ws.policy.spi |
The package contains policy API extension point definitions.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
EffectiveAlternativeSelector.doSelection(EffectivePolicyModifier modifier)
Does the selection for policy map bound to given modifier.
|
(package private) Policy |
PolicyMap.ScopeMap.getEffectivePolicy(PolicyMapKey key) |
(package private) Policy |
PolicyScope.getEffectivePolicy(PolicyMerger merger)
Returns all policies of the scope merged into one policy
|
Policy |
PolicySubject.getEffectivePolicy(PolicyMerger merger)
Returns the effective policy of the subject, i.e.
|
Policy |
PolicyMap.getEndpointEffectivePolicy(PolicyMapKey key) |
Policy |
PolicyMap.getFaultMessageEffectivePolicy(PolicyMapKey key) |
Policy |
PolicyMap.getInputMessageEffectivePolicy(PolicyMapKey key) |
static AssertionValidationProcessor |
AssertionValidationProcessor.getInstance()
Factory method that returns singleton instance of the class.
|
Policy |
PolicyMap.getOperationEffectivePolicy(PolicyMapKey key) |
Policy |
PolicyMap.getOutputMessageEffectivePolicy(PolicyMapKey key) |
Policy |
PolicyMap.getServiceEffectivePolicy(PolicyMapKey key) |
static void |
PolicyMapUtil.insertPolicies(PolicyMap policyMap,
java.util.Collection<PolicySubject> policySubjects,
javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portName)
Inserts all PolicySubjects of type WsdlBindingSubject into the given policy map.
|
static void |
PolicyMapUtil.rejectAlternatives(PolicyMap map)
Throw an exception if the policy map contains any policy with at least two
policy alternatives.
|
protected static void |
EffectiveAlternativeSelector.selectAlternatives(EffectivePolicyModifier modifier,
AssertionValidationProcessor validationProcessor)
This method is intended to be called by extension classes that need to
override the behavior of
EffectiveAlternativeSelector.doSelection(com.sun.xml.ws.policy.EffectivePolicyModifier). |
private static Policy |
EffectiveAlternativeSelector.selectBestAlternative(Policy policy,
AssertionValidationProcessor validationProcessor) |
PolicyAssertionValidator.Fitness |
AssertionValidationProcessor.validateClientSide(PolicyAssertion assertion)
Validates fitness of the
assertion on the client side. |
PolicyAssertionValidator.Fitness |
AssertionValidationProcessor.validateServerSide(PolicyAssertion assertion)
Validates fitness of the
assertion on the server side. |
| Constructor and Description |
|---|
AssertionValidationProcessor()
This constructor instantiates the object with a set of dynamically
discovered PolicyAssertionValidators.
|
AssertionValidationProcessor(java.util.Collection<PolicyAssertionValidator> policyValidators)
This constructor adds the given set of policy validators to the dynamically
discovered PolicyAssertionValidators.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
PolicyUtils.ConfigFile.generateFullName(java.lang.String configFileIdentifier)
Generates a config file resource name from provided config file identifier.
|
| Modifier and Type | Method and Description |
|---|---|
private ModelNode |
XmlPolicyModelUnmarshaller.addNewChildNode(NamespaceVersion nsVersion,
ModelNode parentNode,
javax.xml.stream.events.StartElement childElement) |
private void |
XmlPolicyModelUnmarshaller.checkEndTagName(javax.xml.namespace.QName expected,
javax.xml.stream.events.EndElement element)
Method checks whether the actual name of the end tag is equal to the expected name - the name of currently unmarshalled
XML policy model element.
|
private java.util.Collection<AssertionSet> |
PolicyModelTranslator.createPolicyAlternatives(PolicySourceModel model)
Method creates policy alternatives according to provided model.
|
private PolicyAssertion |
PolicyModelTranslator.createPolicyAssertionParameter(ModelNode parameterNode) |
private javax.xml.stream.XMLEventReader |
XmlPolicyModelUnmarshaller.createXMLEventReader(java.lang.Object storage)
Method checks if the storage type is supported and transforms it to XMLEventReader instance which is then returned.
|
private void |
PolicyModelTranslator.decompose(java.util.Collection<ModelNode> content,
PolicyModelTranslator.ContentDecomposition decomposition)
Decomposes the unprocessed alternative content into two different collections:
Content of 'EXACTLY_ONE' child nodes is expanded and placed in one list and
'ASSERTION' nodes are placed into other list.
|
void |
PolicySourceModel.expand(PolicySourceModelContext context)
Expands current policy model.
|
private java.util.Collection<ModelNode> |
PolicyModelTranslator.expandsExactlyOneContent(java.util.Collection<ModelNode> content)
Expands content of 'EXACTLY_ONE' node.
|
(package private) java.util.Map<java.lang.String,java.lang.String> |
PolicySourceModel.getNamespaceToPrefixMapping()
Provides information about how namespaces used in this
PolicySourceModel
instance should be mapped to their default prefixes when marshalled. |
private static ModelNode |
PolicyModelTranslator.getReferencedModelRootNode(ModelNode policyReferenceNode) |
static PolicyModelTranslator |
PolicyModelTranslator.getTranslator()
Method returns thread-safe policy model translator instance.
|
private java.util.Collection<java.lang.String> |
PolicySourceModel.getUsedNamespaces()
Iterates through policy vocabulary and extracts set of namespaces used in
the policy expression.
|
private PolicySourceModel |
XmlPolicyModelUnmarshaller.initializeNewModel(javax.xml.stream.events.StartElement element) |
abstract void |
PolicyModelMarshaller.marshal(java.util.Collection<PolicySourceModel> models,
java.lang.Object storage)
Marshalls the collection of policy source models using provided storage reference
|
void |
XmlPolicyModelMarshaller.marshal(java.util.Collection<PolicySourceModel> models,
java.lang.Object storage) |
abstract void |
PolicyModelMarshaller.marshal(PolicySourceModel model,
java.lang.Object storage)
Marshalls the policy source model using provided storage reference
|
void |
XmlPolicyModelMarshaller.marshal(PolicySourceModel model,
java.lang.Object storage) |
private void |
XmlPolicyModelMarshaller.marshal(PolicySourceModel model,
com.sun.xml.txw2.output.StaxSerializer writer)
Marshal a policy onto the given StaxSerializer.
|
private void |
XmlPolicyModelMarshaller.marshal(PolicySourceModel model,
com.sun.xml.txw2.TypedXmlWriter writer)
Marshal a policy onto the given TypedXmlWriter.
|
private void |
XmlPolicyModelMarshaller.marshal(PolicySourceModel model,
javax.xml.stream.XMLStreamWriter writer)
Marshal a policy onto the given XMLStreamWriter.
|
private void |
XmlPolicyModelMarshaller.marshalDefaultPrefixes(PolicySourceModel model,
com.sun.xml.txw2.TypedXmlWriter writer)
Write default prefixes onto the given TypedXmlWriter
|
private java.util.List<AssertionSet> |
PolicyModelTranslator.normalizeRawAlternative(PolicyModelTranslator.RawAlternative alternative) |
private java.util.List<PolicyAssertion> |
PolicyModelTranslator.normalizeRawAssertion(PolicyModelTranslator.RawAssertion assertion) |
private void |
XmlPolicyModelUnmarshaller.parseAssertionData(NamespaceVersion nsVersion,
java.lang.String value,
ModelNode childNode,
javax.xml.stream.events.StartElement childElement) |
private boolean |
XmlPolicyModelUnmarshaller.parseBooleanValue(java.lang.String value)
Return true if the value is "true" or "1".
|
private java.lang.StringBuilder |
XmlPolicyModelUnmarshaller.processCharacters(ModelNode.Type currentNodeType,
javax.xml.stream.events.Characters characters,
java.lang.StringBuilder currentValueBuffer) |
PolicySourceModel |
NormalizedModelGenerator.translate(Policy policy) |
abstract PolicySourceModel |
PolicyModelGenerator.translate(Policy policy)
This method translates a
Policy into a
policy infoset. |
PolicySourceModel |
CompactModelGenerator.translate(Policy policy) |
Policy |
PolicyModelTranslator.translate(PolicySourceModel model)
The method translates
PolicySourceModel structure into normalized Policy expression. |
PolicySourceModel |
XmlPolicyModelUnmarshaller.unmarshalModel(java.lang.Object storage)
|
abstract PolicySourceModel |
PolicyModelUnmarshaller.unmarshalModel(java.lang.Object storage)
Unmarshalls single policy source model from provided storage reference.
|
private java.lang.String |
XmlPolicyModelUnmarshaller.unmarshalNodeContent(NamespaceVersion nsVersion,
ModelNode node,
javax.xml.namespace.QName nodeElementName,
javax.xml.stream.XMLEventReader reader) |
| Constructor and Description |
|---|
PolicyModelTranslator() |
PolicyModelTranslator(java.util.Collection<PolicyAssertionCreator> creators) |
RawAlternative(java.util.Collection<ModelNode> assertionNodes) |
| Modifier and Type | Method and Description |
|---|---|
private void |
ExternalAttachmentsUnmarshaller.checkEndTagName(javax.xml.namespace.QName expectedName,
javax.xml.stream.events.EndElement element) |
private void |
ExternalAttachmentsUnmarshaller.processCharacters(javax.xml.stream.events.Characters chars,
javax.xml.stream.events.StartElement currentElement,
java.util.Map<java.net.URI,Policy> map) |
private void |
ExternalAttachmentsUnmarshaller.processEndTag(javax.xml.stream.events.EndElement element,
javax.xml.stream.events.StartElement startElement) |
private void |
ExternalAttachmentsUnmarshaller.processStartTag(javax.xml.stream.events.StartElement element,
javax.xml.stream.events.StartElement parent,
javax.xml.stream.XMLEventReader reader,
java.util.Map<java.net.URI,Policy> map) |
private void |
ExternalAttachmentsUnmarshaller.processUri(javax.xml.stream.events.Characters chars,
java.util.Map<java.net.URI,Policy> map) |
private void |
ExternalAttachmentsUnmarshaller.readPolicy(javax.xml.stream.XMLEventReader reader) |
static java.util.Map<java.net.URI,Policy> |
ExternalAttachmentsUnmarshaller.unmarshal(java.io.Reader source) |
private java.util.Map<java.net.URI,Policy> |
ExternalAttachmentsUnmarshaller.unmarshal(javax.xml.stream.XMLEventReader reader,
javax.xml.stream.events.StartElement parentElement) |
| Modifier and Type | Class and Description |
|---|---|
class |
AssertionCreationException
Exception thrown in case of assertion creation failure.
|