Package org.apache.ws.notification.base.faults

Examples of org.apache.ws.notification.base.faults.ResourceUnknownFaultException


   public final EndpointReferenceType subscribe( SubscriptionRequest subscriptionRequest )
   throws BaseFaultException
   {
      if ( !validTopic( subscriptionRequest.getTopic(  ) ) )
      {
         throw new ResourceUnknownFaultException( MSG.getMessage( Keys.TOPIC_NOT_AVAILABLE_FOR_SUBSCRIPTION,
                                                                  subscriptionRequest.getTopic(  ).toString(  ) ) );
      }

      Subscription subscription = m_subscriptionTable.addSubscription( subscriptionRequest );

      try
      {
         return buildSubscriptionEPR( subscription );
      }
      catch ( Exception e )
      {
         throw new ResourceUnknownFaultException( e.toString(  ) );
      }
   }
View Full Code Here

TOP

Related Classes of org.apache.ws.notification.base.faults.ResourceUnknownFaultException

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.