예제 #1
0
 /**
  * Sends back a message as an answer to a previously-received incoming message via {@link
  * #receiveMessage(PartnerTrack)}. The message will be sent back using the still-open HTTP
  * Connection.
  *
  * <p>This call will not return until either the message has been delivered, or a timeout has
  * occurred, or the thread was interrupted.
  *
  * @param partnerTrack
  * @param message
  * @throws TimeoutException
  * @throws InterruptedException
  */
 public void sendBackMessage(PartnerTrack partnerTrack, OutgoingMessage message)
     throws TimeoutException, InterruptedException {
   fOutgoingBlackboard.putObject(partnerTrack, message);
   fSentBlackBoard.getObject(message);
 }
예제 #2
0
 public OutgoingMessage getWSOutgoingMessage(PartnerTrack head)
     throws TimeoutException, InterruptedException {
   return fOutgoingBlackboard.getObject(head);
 }
예제 #3
0
 /**
  * Wait for an incoming message at the port and address registered to the given partner track.
  *
  * <p>This call will not return until either a message as been received, a timeout has occurred,
  * or the thread was interrupted.
  *
  * <p>Note that the Web Service Handler expects an answer to every such incoming message. Use
  * {@link #sendBackMessage(PartnerTrack, OutgoingMessage)} to send back a message.
  *
  * @param partnerTrack
  * @return
  * @throws TimeoutException
  * @throws InterruptedException
  */
 public IncomingMessage receiveMessage(PartnerTrack partnerTrack)
     throws TimeoutException, InterruptedException {
   return fIncomingBlackboard.getObject(partnerTrack);
 }