public InvalidFilterFault(Document faultAsDocument) throws WsnbException, WsrfbfException { super(); this.wsnFault = RefinedWsnbFactory.getInstance().getWsnbReader().readInvalidFilterFaultType(faultAsDocument); this.init(); }
public InvalidMessageContentExpressionFault(Document faultAsDocument) throws WsnbException, WsrfbfException { super(); this.wsnFault = RefinedWsnbFactory.getInstance().getWsnbReader().readInvalidMessageContentExpressionFaultType(faultAsDocument); this.init(); }
public InvalidProducerPropertiesExpressionFault(Document faultAsDocument) throws WsnbException, WsrfbfException { super(); this.wsnFault = RefinedWsnbFactory.getInstance().getWsnbReader().readInvalidProducerPropertiesExpressionFaultType(faultAsDocument); this.init(); }
public void doInvoke(SimpleExchange exchange) throws ServiceException { if (exchange == null || exchange.getIn() == null) { throw new ServiceException("Incoming message is null..."); } QName operation = exchange.getOperation(); if (operation == null) { throw new ServiceException("Incoming operation is null..."); } if ("Notify".equals(operation.getLocalPart())) { logger.finest("Notify"); try { Notify notify = RefinedWsnbFactory.getInstance().getWsnbReader() .readNotify(exchange.getIn()); this.consumer.notify(notify); } catch (WsnbException e) { throw new ServiceException(e); } } else { throw new ServiceException("Unknown operation '" + operation + "'"); } } }
try { Subscribe subscribe = RefinedWsnbFactory.getInstance().getWsnbReader() .readSubscribe(exchange.getIn()); SubscribeResponse res = this.producer.subscribe(subscribe); Document docResp = RefinedWsnbFactory.getInstance().getWsnbWriter() try { GetCurrentMessage getCurrentMessage = RefinedWsnbFactory.getInstance() .getWsnbReader().readGetCurrentMessage(exchange.getIn()); GetCurrentMessageResponse res = this.producer.getCurrentMessage(getCurrentMessage); Document docResp = RefinedWsnbFactory.getInstance().getWsnbWriter()
public NoCurrentMessageOnTopicFault(Document faultAsDocument) throws WsnbException, WsrfbfException { super(); this.wsnFault = RefinedWsnbFactory.getInstance().getWsnbReader().readNoCurrentMessageOnTopicFaultType(faultAsDocument); this.init(); }
public PauseFailedFault(Document faultAsDocument) throws WsnbException, WsrfbfException { super(); this.wsnFault = RefinedWsnbFactory.getInstance().getWsnbReader().readPauseFailedFaultType(faultAsDocument); this.init(); }
public InvalidTopicExpressionFault(Document faultAsDocument) throws WsnbException, WsrfbfException { super(); this.wsnFault = RefinedWsnbFactory.getInstance().getWsnbReader().readInvalidTopicExpressionFaultType(faultAsDocument); this.init(); }
public MultipleTopicsSpecifiedFault(Document faultAsDocument) throws WsnbException, WsrfbfException { super(); this.wsnFault = RefinedWsnbFactory.getInstance().getWsnbReader().readMultipleTopicsSpecifiedFaultType(faultAsDocument); this.init(); }
public NotifyMessageNotSupportedFault(Document faultAsDocument) throws WsnbException, WsrfbfException { super(); this.wsnFault = RefinedWsnbFactory.getInstance().getWsnbReader().readNotifyMessageNotSupportedFaultType(faultAsDocument); this.init(); }
public void fireAndForget(Message message) throws ClientException { // get the ID from a property... String id = message.getProperty(UNIQUEID); InternalNotificationConsumer consumer = null; if (id != null) { consumer = this.registry.get(id); } if (consumer == null) { throw new ClientException( "Can not find any valid consumer for the current notification..."); } // create the notify try { consumer.notify(Wsnb4ServUtils.getWsnbReader().readNotify(message.getPayload())); } catch (WsnbException e) { throw new ClientException(e); } }