Package org.xmlsoap.schemas.ws.x2003.x03.addressing

Examples of org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType


   public void testBlockSizeSubscribe(  )
   throws Exception
   {
      TopicDocument         topic     = createBlockSizeTopic(  );
      SubscriptionRequest   sr        = createSubscriptionRequest( topic );
      EndpointReferenceType subMgrEpr = null;

      subMgrEpr = m_notificationManager.subscribe( sr );

      // Test Address Value
      testAddress( subMgrEpr );
View Full Code Here


   public void testManufacturerSubscribe(  )
   throws Exception
   {
      TopicDocument         topic     = createManufacturerTopic(  );
      SubscriptionRequest   sr        = createSubscriptionRequest( topic );
      EndpointReferenceType subMgrEpr = null;

      subMgrEpr = m_notificationManager.subscribe( sr );

      // Test Address Value
      testAddress( subMgrEpr );
View Full Code Here

   throws Exception
   {
      TopicDocument topic = createMuwsResourceStateTopic(  );
      ;
      SubscriptionRequest   sr        = createSubscriptionRequest( topic );
      EndpointReferenceType subMgrEpr = null;

      subMgrEpr = m_notificationManager.subscribe( sr );

      testAddress( subMgrEpr );
View Full Code Here

   }

   private SubscriptionRequest createSubscriptionRequest( TopicDocument topic )
   throws URISyntaxException
   {
      EndpointReferenceType consumer        = EndpointReferenceType.Factory.newInstance(  );
      Calendar              terminationTime = Calendar.getInstance(  );
      terminationTime.add( Calendar.HOUR, 1 ); // expire this subscription in 1 hour
      SubscriptionRequest sr =
         new SubscriptionRequestImpl( consumer, topic, null,
                                      new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ), null,
View Full Code Here

      Calendar termination = Calendar.getInstance(  );
      termination.set( 2099, Calendar.JANUARY, 1 );
      sub.getResourceProps(  ).setTerminationTime( termination );

      // define a mock consumer EPR
      EndpointReferenceType consumer = sub.getResourceProps(  ).getConsumerReference(  );
      AttributedURI         uri = consumer.addNewAddress(  );
      uri.setStringValue( "http://consumer/" + url_num );
      consumer.setAddress( uri );

      return sub;
   }
View Full Code Here

   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

TOP

Related Classes of org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType

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.