Package org.opensaml.ws.wssecurity

Examples of org.opensaml.ws.wssecurity.Reference


*/
public class ReferenceMarshaller extends AbstractWSSecurityObjectMarshaller {

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


*/
public class ReferenceUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {

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

*/
public class ReferenceUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {

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

*/
public class ReferenceMarshaller extends AbstractWSSecurityObjectMarshaller {

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

TOP

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

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.