Examples of Addressing


Examples of org.w3.x2007.x05.addressing.metadata.AddressingDocument.Addressing

    // check if found reference is addressing policy
    Element wsAddressing = XmlUtils.getFirstChildElementNS( wsamAddressingElm, WsaUtils.WS_A_NAMESPACE_200705,
        "Addressing" );
    Element addressingPolicy = null;
    Policy newPolicy = PolicyDocument.Factory.newInstance().addNewPolicy();
    Addressing newAddressing = null;
    if( wsAddressing != null )
    {
      newAddressing = newPolicy.addNewAddressing();
      String optional = wsAddressing.getAttributeNS( usedPolicyNamespace, "Optional" );
      if( !StringUtils.isNullOrEmpty( optional ) && optional.equals( OptionalType.TRUE.toString() ) )
      {
        newAddressing.setOptional( OptionalType.TRUE );
      }
      else
      {
        newAddressing.setOptional( OptionalType.FALSE );
      }
      addressingPolicy = XmlUtils.getFirstChildElementNS( wsAddressing, usedPolicyNamespace, "Policy" );
      if( addressingPolicy != null )
      {
        Element exactlyOne = XmlUtils.getFirstChildElementNS( addressingPolicy, usedPolicyNamespace, "ExactlyOne" );
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.