Package org.opensaml.ws.wssecurity

Examples of org.opensaml.ws.wssecurity.AttributedURI


*/
public class AttributedURIMarshaller extends AbstractWSSecurityObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AttributedURI attributedURI = (AttributedURI) xmlObject;
       
        if (!DatatypeHelper.isEmpty(attributedURI.getWSUId())) {
            XMLHelper.marshallAttribute(AttributedURI.WSU_ID_ATTR_NAME, attributedURI.getWSUId(), domElement, true);
        }
       
        XMLHelper.marshallAttributeMap(attributedURI.getUnknownAttributes(), domElement);
       
    }
View Full Code Here


       
    }

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AttributedURI attributedURI = (AttributedURI) xmlObject;
        XMLHelper.appendTextContent(domElement, attributedURI.getValue());
    }
View Full Code Here

*/
public class AttributedURIUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AttributedURI attributedURI = (AttributedURI) xmlObject;
       
        QName attribQName =
            XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
        if (AttributedURI.WSU_ID_ATTR_NAME.equals(attribQName)) {
            attributedURI.setWSUId(attribute.getValue());
            attribute.getOwnerElement().setIdAttributeNode(attribute, true);
        } else {
            XMLHelper.unmarshallToAttributeMap(attributedURI.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

        }
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        AttributedURI attributedURI = (AttributedURI) xmlObject;
        attributedURI.setValue(elementContent);
    }
View Full Code Here

*/
public class AttributedURIUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AttributedURI attributedURI = (AttributedURI) xmlObject;
       
        QName attribQName =
            XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
        if (AttributedURI.WSU_ID_ATTR_NAME.equals(attribQName)) {
            attributedURI.setWSUId(attribute.getValue());
            attribute.getOwnerElement().setIdAttributeNode(attribute, true);
        } else {
            XMLHelper.unmarshallToAttributeMap(attributedURI.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

        }
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        AttributedURI attributedURI = (AttributedURI) xmlObject;
        attributedURI.setValue(elementContent);
    }
View Full Code Here

*/
public class AttributedURIMarshaller extends AbstractWSSecurityObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AttributedURI attributedURI = (AttributedURI) xmlObject;
       
        if (!DatatypeHelper.isEmpty(attributedURI.getWSUId())) {
            XMLHelper.marshallAttribute(AttributedURI.WSU_ID_ATTR_NAME, attributedURI.getWSUId(), domElement, true);
        }
       
        XMLHelper.marshallAttributeMap(attributedURI.getUnknownAttributes(), domElement);
       
    }
View Full Code Here

       
    }

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AttributedURI attributedURI = (AttributedURI) xmlObject;
        XMLHelper.appendTextContent(domElement, attributedURI.getValue());
    }
View Full Code Here

TOP

Related Classes of org.opensaml.ws.wssecurity.AttributedURI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.