/** * Create an instance of {@link GetMessagesResponse } * */ public GetMessagesResponse createGetMessagesResponse() { return new GetMessagesResponse(); }
/** * * @param getMessagesRequest * @return returns org.oasis_open.docs.wsn.b_1.GetMessagesResponse * @throws ResourceUnknownFault * @throws UnableToGetMessagesFault */ @WebMethod(operationName = "GetMessages") @WebResult(name = "GetMessagesResponse", targetNamespace = "http://docs.oasis-open.org/wsn/b-1", partName = "GetMessagesResponse") public GetMessagesResponse getMessages( @WebParam(name = "GetMessages", targetNamespace = "http://docs.oasis-open.org/wsn/b-1", partName = "GetMessagesRequest") GetMessages getMessagesRequest) throws ResourceUnknownFault, UnableToGetMessagesFault { LOGGER.finest("GetMessages"); BigInteger max = getMessagesRequest.getMaximumNumber(); List<NotificationMessageHolderType> messages = getMessages(max != null ? max.intValue() : 0); GetMessagesResponse response = new GetMessagesResponse(); response.getNotificationMessage().addAll(messages); return response; }
public List<NotificationMessageHolderType> getMessages(long max) throws UnableToGetMessagesFault, ResourceUnknownFault { GetMessages getMessages = new GetMessages(); getMessages.setMaximumNumber(BigInteger.valueOf(max)); GetMessagesResponse response = pullPoint.getMessages(getMessages); return response.getNotificationMessage(); }
throw new UnableToGetMessagesFault("at least one pull point mailbox must be specified", new UnableToGetMessagesFaultType()); GetMessagesResponse res = new GetMessagesResponse(); int count = 0; long maxmessages = 100; Notify poll = box.messages.poll(); if (poll != null) { res.getNotificationMessage().addAll(poll.getNotificationMessage()); count++;
/** * Create an instance of {@link GetMessagesResponse } * */ public GetMessagesResponse createGetMessagesResponse() { return new GetMessagesResponse(); }
/** * Create an instance of {@link GetMessagesResponse } * */ public GetMessagesResponse createGetMessagesResponse() { return new GetMessagesResponse(); }