public class XmlAssertionMarshaller extends java.lang.Object implements AssertionMarshaller
Constructor and Description |
---|
XmlAssertionMarshaller() |
Modifier and Type | Method and Description |
---|---|
void |
addSupportedAssertion(javax.xml.namespace.QName assertionName)
Adds an assertion identified by QName to the list of supported assertions.
|
void |
addSupportedAssertions(java.util.List assertionNames)
Adds a list of supported assertions identified by QName.
|
javax.xml.namespace.QName[] |
getSupportedAssertions()
Returns an array of QNames, each representing the name of an assertion
that this AssertionMarshaller can marshal and unmarshal.
|
void |
marshal(Assertion assertion,
org.w3c.dom.Element element)
Marshals the given assertion to the given element.
|
Assertion |
unmarshal(org.w3c.dom.Element element)
Unmarshals the given element to a new assertion instance created by this
class.
|
Assertion |
unmarshal(org.w3c.dom.Element element,
Policy subPolicy)
Identical semantics as unmarshal(Element), except sub-policy was found as
a child (or children, in the case of multiple policy) of the given
element.
|
public javax.xml.namespace.QName[] getSupportedAssertions()
AssertionMarshaller
getSupportedAssertions
in interface AssertionMarshaller
AssertionMarshaller.getSupportedAssertions()
public void addSupportedAssertions(java.util.List assertionNames) throws com.digev.fw.exception.GException
assertionNames
- List of supported assertion QNames.com.digev.fw.exception.GException
- Thrown if a list item is not a QName.public void addSupportedAssertion(javax.xml.namespace.QName assertionName)
assertionName
- QName of the supported assertion.public void marshal(Assertion assertion, org.w3c.dom.Element element) throws com.digev.fw.exception.GException
AssertionMarshaller
Note that assertion sub-policy will be handled by the policy framework only if the assertion is of type SubPolicyAssertion.
marshal
in interface AssertionMarshaller
assertion
- -
the assertion to be marshaled.element
- -
the already created element representing the assertion. The
element should be filled by this class with domain specific
data.com.digev.fw.exception.GException
AssertionMarshaller.marshal(com.soa.policy.wspolicy.Assertion, org.w3c.dom.Element)
public Assertion unmarshal(org.w3c.dom.Element element)
AssertionMarshaller
This method implies that the given element contains no sub-policy, and implementors should not search for sub-policy. If an implementor cannot unmarshal their assertion without sub-policy, they should not implement this method. Instead, throw GException(PolicyErrorCode.SUB_POLICY_REQUIRED)
unmarshal
in interface AssertionMarshaller
element
- representing the assertion to be unmarshaled.AssertionMarshaller.unmarshal(org.w3c.dom.Element)
public Assertion unmarshal(org.w3c.dom.Element element, Policy subPolicy) throws com.digev.fw.exception.GException
AssertionMarshaller
unmarshal
in interface AssertionMarshaller
element
- representing the assertion to be unmarshaled.subPolicy
- the sub-policy found as a child of the given element.com.digev.fw.exception.GException
Akana, Inc. Copyright (C) 2000-2015, All rights reserved
This software is the confidential and proprietary information of Akana, Inc. and is subject to copyright protection under laws of the United States of America and other countries. The use of this software should be in accordance with the license agreement terms you entered into with Akana, Inc.