Package org.opensaml.ws.wssecurity

Examples of org.opensaml.ws.wssecurity.Embedded


*/
public class EmbeddedUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Embedded embedded = (Embedded) xmlObject;
        String attrName = attribute.getLocalName();
        if (Embedded.VALUE_TYPE_ATTRIB_NAME.equals(attrName)) {
            embedded.setValueType(attribute.getValue());
        } else {
            XMLHelper.unmarshallToAttributeMap(embedded.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here


    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        Embedded embedded = (Embedded) parentXMLObject;
        embedded.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

*/
public class EmbeddedMarshaller extends AbstractWSSecurityObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        Embedded embedded = (Embedded) xmlObject;
        if (!DatatypeHelper.isEmpty(embedded.getValueType())) {
            domElement.setAttributeNS(null, Embedded.VALUE_TYPE_ATTRIB_NAME, embedded.getValueType());
        }
       
        XMLHelper.marshallAttributeMap(embedded.getUnknownAttributes(), domElement);
       
    }
View Full Code Here

*/
public class EmbeddedUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Embedded embedded = (Embedded) xmlObject;
        String attrName = attribute.getLocalName();
        if (Embedded.VALUE_TYPE_ATTRIB_NAME.equals(attrName)) {
            embedded.setValueType(attribute.getValue());
        } else {
            XMLHelper.unmarshallToAttributeMap(embedded.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        Embedded embedded = (Embedded) parentXMLObject;
        embedded.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

*/
public class EmbeddedMarshaller extends AbstractWSSecurityObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        Embedded embedded = (Embedded) xmlObject;
        if (!DatatypeHelper.isEmpty(embedded.getValueType())) {
            domElement.setAttributeNS(null, Embedded.VALUE_TYPE_ATTRIB_NAME, embedded.getValueType());
        }
       
        XMLHelper.marshallAttributeMap(embedded.getUnknownAttributes(), domElement);
       
    }
View Full Code Here

TOP

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

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.