net.sf.beep4j.internal
Class SessionImpl.DefaultReply

java.lang.Object
  extended by net.sf.beep4j.internal.SessionImpl.DefaultReply
All Implemented Interfaces:
Reply
Direct Known Subclasses:
SessionImpl.InitialReply
Enclosing class:
SessionImpl

protected class SessionImpl.DefaultReply
extends java.lang.Object
implements Reply


Constructor Summary
SessionImpl.DefaultReply(TransportMapping mapping, int channel, int messageNumber)
           
 
Method Summary
 MessageBuilder createMessageBuilder()
          Creates a new MessageBuilder object that can be used to create one new message.
 void sendANS(Message message)
          Sends a reply of type ANS.
 void sendERR(Message message)
          Sends a negative reply of type ERR.
 void sendNUL()
          Sends a reply of type NUL.
 void sendRPY(Message message)
          Sends a positive reply of type RPY.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionImpl.DefaultReply

public SessionImpl.DefaultReply(TransportMapping mapping,
                                int channel,
                                int messageNumber)
Method Detail

createMessageBuilder

public MessageBuilder createMessageBuilder()
Description copied from interface: Reply
Creates a new MessageBuilder object that can be used to create one new message.

Specified by:
createMessageBuilder in interface Reply
Returns:
a new MessageBuilder object

sendANS

public void sendANS(Message message)
Description copied from interface: Reply
Sends a reply of type ANS. This method can be called zero or more times. To complete the response the method Reply.sendNUL() has to be invoked.

Specified by:
sendANS in interface Reply
Parameters:
message - the response

sendERR

public void sendERR(Message message)
Description copied from interface: Reply
Sends a negative reply of type ERR. This method can only be called exactly once.

Specified by:
sendERR in interface Reply
Parameters:
message - the response

sendNUL

public void sendNUL()
Description copied from interface: Reply
Sends a reply of type NUL. This method must be called to complete a one-to-many exchange.

Specified by:
sendNUL in interface Reply

sendRPY

public void sendRPY(Message message)
Description copied from interface: Reply
Sends a positive reply of type RPY. This method can only be called exactly once.

Specified by:
sendRPY in interface Reply
Parameters:
message - the response


Copyright © 2007 null. All Rights Reserved.