Package org.apache.ws.notification.pubsub

Source Code of org.apache.ws.notification.pubsub.Subscription

/*=============================================================================*
*  Copyright 2004 The Apache Software Foundation
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*=============================================================================*/
package org.apache.ws.notification.pubsub;

import org.apache.commons.id.IdentifierUtils;
import org.apache.ws.addressing.XmlBeansEndpointReference;
import org.apache.ws.notification.base.impl.AbstractSubscription;
import org.apache.ws.pubsub.SubscriptionEndConsumer;
import org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument;
import org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType;
import java.util.Calendar;

/**
*
* @author  Stefan Lischke
*/
public class Subscription
   extends AbstractSubscription
{
   private EndpointReferenceType sMan;

   //private static final Log LOG = LogFactory.getLog( Subscriber.class.getName() );  

   /** Creates a new instance of Subscription */
   public Subscription(  )
   {
      m_id              = IdentifierUtils.UUID_VERSION_FOUR_GENERATOR.nextIdentifier(  ).toString(  );
      m_creationTime    = Calendar.getInstance(  );
   }

   /**
    * DOCUMENT_ME
    *
    * @param propSet DOCUMENT_ME
    */
   public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
   {
   }

   /**
    * Get the subscriptionEnd consumer associated with this subscription.
    *
    * @return the subscriptionEnd consumer
    */
   public SubscriptionEndConsumer getSubscriptionEndConsumer(  )
   {
      return null; //todo
   }

   /**
    * DOCUMENT_ME
    *
    * @param sresdom DOCUMENT_ME
    */
   public void setSubscriptionManager( SubscribeResponseDocument.SubscribeResponse sresdom )
   {
      sMan = sresdom.getSubscriptionReference(  );
      super.setEndpointReference( new XmlBeansEndpointReference( sMan ) );
   }

   /**
    * DOCUMENT_ME
    */
   public void init(  )
   {
   }
}
TOP

Related Classes of org.apache.ws.notification.pubsub.Subscription

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.