Package com.bea.x2002.x09.xbean.config.ConfigDocument

Examples of com.bea.x2002.x09.xbean.config.ConfigDocument.Config


   public MetadataDocument getMetadata( GetMetadataDocument request )
   {
      MetadataConfiguration metadataConfig = getResourceContext(  ).getResourceHome(  ).getMetadataConfig(  );

      // prep the response
      MetadataDocument          responseDoc      = createMetadataResponseDoc(  );
      MetadataDocument.Metadata responseMetadata = responseDoc.addNewMetadata(  );

      if ( metadataConfig != null )
      {
         // get the values from the request
         GetMetadataDocument.GetMetadata requestMetadata = request.getGetMetadata(  );
View Full Code Here


      //check for MetadataReference...if its there, we're finished.
      XmlObject             result           = null;
      EndpointReferenceType metadataReferece = metadata.getMetadataReferece(  );
      if ( metadataReferece != null )
      {
         MetadataReferenceDocument metadataReferenceDocument = MetadataReferenceDocument.Factory.newInstance(  );
         metadataReferenceDocument.setMetadataReference( metadataReferece );
         result = metadataReferenceDocument;
      }
      else //use location instead
      {
         String location = metadata.getLocation(  );
View Full Code Here

      //check for MetadataReference...if its there, we're finished.
      XmlObject             result           = null;
      EndpointReferenceType metadataReferece = metadata.getReference(  );
      if ( metadataReferece != null )
      {
         MetadataReferenceDocument metadataReferenceDocument = MetadataReferenceDocument.Factory.newInstance(  );
         metadataReferenceDocument.setMetadataReference( metadataReferece );
         result = metadataReferenceDocument;
      }
      else //use location instead
      {
         String location = metadata.getLocation(  );
View Full Code Here

      return m_metadata;
   }

   private MetadataReferenceDocument createMetadataReferenceDocument( EndpointReferenceType epr )
   {
      MetadataReferenceDocument metadataReferenceDoc = MetadataReferenceDocument.Factory.newInstance(  );
      metadataReferenceDoc.setMetadataReference( epr );
      return metadataReferenceDoc;
   }
View Full Code Here

        if( StringUtils.isNullOrEmpty( optional ) || optional.equals( "false" )
            || ( optional.equals( "true" ) && SoapUI.getSettings().getBoolean( WsaSettings.ENABLE_FOR_OPTIONAL ) ) )
        {
          interfaceWsaVersion = WsaVersionTypeConfig.X_200508.toString();
        }
        Policy innerPolicy = addressing.getPolicy();
        if( innerPolicy != null )
        {
          List<AnonymousResponses> anonymousList = innerPolicy.getAnonymousResponsesList();
          List<NonAnonymousResponses> nonAnonymousList = innerPolicy.getNonAnonymousResponsesList();
          if( anonymousList.size() > 0 && nonAnonymousList.size() > 0 )
          {
            throw new Exception(
                "Wrong addressing policy, anonymousResponses and nonAnonymousResponses can not be specified together" );
          }
View Full Code Here

  // return policy;
  // }
  public static Policy getAttachedPolicy( ElementExtensible item, Definition def )
  {

    Policy rtnPolicy = null;
    String usedPolicyNamespace = PolicyUtils.WS_W3_POLICY_NAMESPACE;
    Element[] policyReferences = WsdlUtils.getExentsibilityElements( item, new QName(
        PolicyUtils.WS_W3_POLICY_NAMESPACE, "PolicyReference" ) );
    if( policyReferences.length <= 0 )
    {
View Full Code Here

  public static Policy getPolicy( Element policy, String usedPolicyNamespace )
  {
    // policy = PolicyUtils.normalize(policy);

    Policy newPolicy = null;
    // check for ExactlyOne and All
    // TODO ExactlyOne and All are idempotent all empty ones should be skipped
    // and found the real ones
    Element exactlyOne = XmlUtils.getFirstChildElementNS( policy, usedPolicyNamespace, "ExactlyOne" );
    if( exactlyOne != null )
View Full Code Here

  {
    // 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" );
        if( exactlyOne != null )
        {
          Element all = XmlUtils.getFirstChildElementNS( exactlyOne, usedPolicyNamespace, "All" );
          if( all != null )
          {
            getAddressingAnonymous( all, newAddressing );
          }
        }
        else
        {
          getAddressingAnonymous( addressingPolicy, newAddressing );
        }

      }
    }
    Element usingAddressing = XmlUtils.getFirstChildElementNS( wsamAddressingElm, WsaUtils.WS_A_NAMESPACE_200605,
        "UsingAddressing" );
    if( usingAddressing != null )
    {
      // add UsingAddressing to policy
      newPolicy.addNewUsingAddressing();
    }
    return newPolicy;
  }
View Full Code Here

    return newPolicy;
  }

  private static void getAddressingAnonymous( Element addressingPolicy, Addressing newAddressing )
  {
    Policy innerPolicy = newAddressing.addNewPolicy();
    // check if policy has Anonymous
    Element anonymousElm = XmlUtils.getFirstChildElementNS( addressingPolicy, new QName(
        WsaUtils.WS_A_NAMESPACE_200705, "AnonymousResponses" ) );
    if( anonymousElm != null )
    {
      innerPolicy.addNewAnonymousResponses();
    }
    else
    {
      Element nonAnonymousElement = XmlUtils.getFirstChildElementNS( addressingPolicy, new QName(
          WsaUtils.WS_A_NAMESPACE_200705, "NonAnonymousResponses" ) );
      if( nonAnonymousElement != null )
      {
        innerPolicy.addNewNonAnonymousResponses();
      }
    }
  }
View Full Code Here

                String optional = addressing.getOptional().toString();
                if (StringUtils.isNullOrEmpty(optional) || optional.equals("false")
                        || (optional.equals("true") && SoapUI.getSettings().getBoolean(WsaSettings.ENABLE_FOR_OPTIONAL))) {
                    interfaceWsaVersion = WsaVersionTypeConfig.X_200508.toString();
                }
                Policy innerPolicy = addressing.getPolicy();
                if (innerPolicy != null) {
                    List<AnonymousResponses> anonymousList = innerPolicy.getAnonymousResponsesList();
                    List<NonAnonymousResponses> nonAnonymousList = innerPolicy.getNonAnonymousResponsesList();
                    if (anonymousList.size() > 0 && nonAnonymousList.size() > 0) {
                        throw new Exception(
                                "Wrong addressing policy, anonymousResponses and nonAnonymousResponses can not be specified together");
                    }
                    if (anonymousList.size() > 0) {
View Full Code Here

TOP

Related Classes of com.bea.x2002.x09.xbean.config.ConfigDocument.Config

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.