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

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


      Topic     topic      = topics[0];
      XmlObject currentMsg = (XmlObject) topic.getCurrentMessage(  );
      if ( currentMsg == null )
      {
         throw new NoCurrentMessageOnTopicFaultException( NAMESPACE_SET );
      }

      GetCurrentMessageResponseDocument                           responseDoc =
         GetCurrentMessageResponseDocument.Factory.newInstance(  );
      GetCurrentMessageResponseDocument.GetCurrentMessageResponse response =
View Full Code Here


   {
      SOAPElement currentMessage = (SOAPElement) m_currentMessages.get( getKey( topicDoc.getTopic(  ) ) );

      if ( currentMessage == null )
      {
         throw new NoCurrentMessageOnTopicFaultException( MSG.getMessage( Keys.MESSAGE_NOT_AVAILABLE_FOR_TOPIC,
                                                                          getKey( topicDoc.getTopic(  ) ) ) );
      }

      return new SOAPElement[]
             {
View Full Code Here

        }
        Topic topic = topics[0];
        XmlObject currentMsg = (XmlObject) topic.getCurrentMessage();
        if ( currentMsg == null )
        {
            throw new NoCurrentMessageOnTopicFaultException( NAMESPACE_SET );
        }
        GetCurrentMessageResponseDocument responseDoc = GetCurrentMessageResponseDocument.Factory.newInstance();
        GetCurrentMessageResponseDocument.GetCurrentMessageResponse response = responseDoc.addNewGetCurrentMessageResponse();
        XmlBeanUtils.addChildElement( response, currentMsg );
        return responseDoc;
View Full Code Here

         throw new TopicNotSupportedFaultException( getNamespaceSet(  ),
                                                    tnse.getLocalizedMessage(  ) );
      }
      catch ( NoCurrentMessageOnTopicException ncmote )
      {
         throw new NoCurrentMessageOnTopicFaultException( getNamespaceSet(  ),
                                                          ncmote.getLocalizedMessage(  ) );
      }

      return buildGetCurrentMessageResponseDocument( currentMsg );
   }
View Full Code Here

TOP

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

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.