Examples of BinaryExchange


Examples of org.opensaml.ws.wstrust.BinaryExchange

*/
public class BinaryExchangeMarshaller extends XSStringMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        BinaryExchange binaryExchange = (BinaryExchange) xmlObject;
       
        String valueType = DatatypeHelper.safeTrimOrNullString(binaryExchange.getValueType());
        if (valueType != null) {
            domElement.setAttributeNS(null, BinaryExchange.VALUE_TYPE_ATTRIB_NAME, valueType);
        }
        String encodingType = DatatypeHelper.safeTrimOrNullString(binaryExchange.getEncodingType());
        if (encodingType != null) {
            domElement.setAttributeNS(null, BinaryExchange.ENCODING_TYPE_ATTRIB_NAME, encodingType);
        }
       
        XMLHelper.marshallAttributeMap(binaryExchange.getUnknownAttributes(), domElement);
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.BinaryExchange

*/
public class BinaryExchangeUnmarshaller extends XSStringUnmarshaller {

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

Examples of org.opensaml.ws.wstrust.BinaryExchange

*/
public class BinaryExchangeUnmarshaller extends XSStringUnmarshaller {

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

Examples of org.opensaml.ws.wstrust.BinaryExchange

*/
public class BinaryExchangeMarshaller extends XSStringMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        BinaryExchange binaryExchange = (BinaryExchange) xmlObject;
       
        String valueType = DatatypeHelper.safeTrimOrNullString(binaryExchange.getValueType());
        if (valueType != null) {
            domElement.setAttributeNS(null, BinaryExchange.VALUE_TYPE_ATTRIB_NAME, valueType);
        }
        String encodingType = DatatypeHelper.safeTrimOrNullString(binaryExchange.getEncodingType());
        if (encodingType != null) {
            domElement.setAttributeNS(null, BinaryExchange.ENCODING_TYPE_ATTRIB_NAME, encodingType);
        }
       
        XMLHelper.marshallAttributeMap(binaryExchange.getUnknownAttributes(), domElement);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.