Package org.xmlsoap.schemas.ws.x2004.x03.rm

Examples of org.xmlsoap.schemas.ws.x2004.x03.rm.ExponentialBackoffDocument$Factory


   public Subscription( String              id,
                        SubscriptionRequest subRequest )
   {
      this( id, (SubscriptionManagerRPDocument) null );

      EndpointReferenceType requestConsumer        = subRequest.getConsumer(  );
      TopicExpressionType   requestTopic           = subRequest.getTopic(  );
      boolean               requestUseNotify       = subRequest.isUseNotify(  );
      Calendar              requestTerminationTime = subRequest.getInitialTerminationTime(  );

      SubscriptionManagerRP rp = m_resourceProps.getSubscriptionManagerRP(  );
View Full Code Here


        XmlObject subPolicy = null;
        if ( request.isSetSubscriptionPolicy() )
        {
            subPolicy = request.getSubscriptionPolicy();
        }
        EndpointReferenceType subscriptionEPR = null;

        boolean useNotify = request.isSetUseNotify() ? request.getUseNotify() : true// NOTE: we must set the default value ourselves, as XMLBeans does NOT do this for us
        EndpointReference producerEPR = getResource().getEndpointReference();
        SubscriptionHome subscriptionHome = null;
        try
View Full Code Here

     *
     * @return this producer's endpoint reference
     */
    public EndpointReference getEPR()
    {
        EndpointReferenceType epr = EndpointReferenceType.Factory.newInstance();
        AttributedURI attributedURI = AttributedURI.Factory.newInstance();
        attributedURI.setStringValue("http://foo");
        epr.setAddress(attributedURI);
        return new XmlBeansEndpointReference(epr);
    }
View Full Code Here

public class SubscriptionTopicListenerTestCase extends TestCase
{

    public void testBuildingNotificationMessages() throws SchemaViolationException
    {
        EndpointReferenceType epr1 = EndpointReferenceType.Factory.newInstance();
        AttributedURI uri = AttributedURI.Factory.newInstance();
        uri.setStringValue("http://consumer");
        epr1.setAddress(uri);
        EndpointReference epr = new XmlBeansEndpointReference(epr1);
        TopicExpressionDocument topicExprType = null;
        try
        {
            topicExprType = (TopicExpressionDocument) XmlObject.Factory.parse("<wsnt:TopicExpression xmlns:wsnt=\"http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd\" Dialect=\"http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Simple\">fs:MountPointDirectory</wsnt:TopicExpression>");
View Full Code Here

      else if ( ( m_addressingVersionURI != null ) && ( m_address != null ) )
      {
         if ( org.apache.ws.addressing.v2003_03.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals( m_addressingVersionURI ) )
         {
            EndpointReferenceType endpointReferenceType = build2003_03_EPR(  );

            m_xmlObjectEPR    = endpointReferenceType;
            epr               = endpointReferenceType;
         }
         else if ( org.apache.ws.addressing.v2004_08_10.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals( m_addressingVersionURI ) )
View Full Code Here

      if ( ( namespace != null ) && ( m_address != null ) )
      {
         if ( org.apache.ws.addressing.v2003_03.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals( namespace ) )
         {
            EndpointReferenceType endpointReferenceType = build2003_03_EPR(  );
            epr = endpointReferenceType;
         }
         else if ( org.apache.ws.addressing.v2004_08_10.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals( namespace ) )
         {
            org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType endpointReferenceType =
View Full Code Here

      }
   }

   private EndpointReferenceType build2003_03_EPR(  )
   {
      EndpointReferenceType endpointReferenceType = EndpointReferenceType.Factory.newInstance(  );
      AttributedURI         attributedURI = endpointReferenceType.addNewAddress(  );
      attributedURI.setStringValue( m_address );

      if ( m_portTypeQName != null )
      {
         AttributedQName attributedQName = endpointReferenceType.addNewPortType(  );
         attributedQName.setQNameValue( m_portTypeQName );
      }

      if ( m_servicePortName != null )
      {
         ServiceNameType serviceNameType = endpointReferenceType.addNewServiceName(  );
         serviceNameType.setPortName( m_servicePortName );
      }

      ReferencePropertiesType refPropsType = endpointReferenceType.addNewReferenceProperties(  );

      if ( m_referenceProps != null )
      {
         addToProperties( refPropsType, m_referenceProps );
      }
View Full Code Here

      else if ( ( m_addressingVersionURI != null ) && ( m_address != null ) )
      {
         if ( org.apache.ws.addressing.v2003_03.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals( m_addressingVersionURI ) )
         {
            EndpointReferenceType endpointReferenceType = build2003_03_EPR(  );

            m_xmlObjectEPR    = endpointReferenceType;
            epr               = endpointReferenceType;
         }
         else if ( org.apache.ws.addressing.v2004_08.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals( m_addressingVersionURI ) )
View Full Code Here

      XmlObject epr = null;
      if ( ( namespace != null ) && ( m_address != null ) )
      {
         if ( org.apache.ws.addressing.v2003_03.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals( namespace ) )
         {
            EndpointReferenceType endpointReferenceType = build2003_03_EPR(  );
            epr = endpointReferenceType;
         }
         else if ( org.apache.ws.addressing.v2004_08.AddressingConstants.NSURI_ADDRESSING_SCHEMA.equals( namespace ) )
         {
            org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType endpointReferenceType =
View Full Code Here

      }
   }

   private EndpointReferenceType build2003_03_EPR(  )
   {
      EndpointReferenceType endpointReferenceType = EndpointReferenceType.Factory.newInstance(  );
      AttributedURI         attributedURI = endpointReferenceType.addNewAddress(  );
      attributedURI.setStringValue( m_address );

      if ( m_portTypeQName != null )
      {
         AttributedQName attributedQName = endpointReferenceType.addNewPortType(  );
         attributedQName.setQNameValue( m_portTypeQName );
      }

      if ( m_servicePortName != null )
      {
         ServiceNameType serviceNameType = endpointReferenceType.addNewServiceName(  );
         if ( m_serviceQName != null )
         {
            serviceNameType.setQNameValue( m_serviceQName );
         }

         serviceNameType.setPortName( m_servicePortName );
      }

      if ( m_refProps != null )
      {
         ReferencePropertiesType refPropsType = endpointReferenceType.addNewReferenceProperties(  );
         addToHolderType( refPropsType, m_refProps );
      }

      return endpointReferenceType;
   }
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.ws.x2004.x03.rm.ExponentialBackoffDocument$Factory

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.