|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Reply
A ResponseHandler is passed to the application whenever a message
of type MSG is received.
(see ChannelHandler#receiveRequest(Channel, Message, ResponseHandler)
)
It allows the application to reply to the received message.
According to section 2.1.1 of the BEEP specification (RFC 3080) the allowed
exchange styles are:
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. |
Method Detail |
---|
MessageBuilder createMessageBuilder()
void sendANS(Message message)
sendNUL()
has
to be invoked.
message
- the response
java.lang.IllegalArgumentException
- if the message is null
java.lang.IllegalStateException
- if a response has already been sentvoid sendNUL()
java.lang.IllegalStateException
- if a response has already been sentvoid sendERR(Message message)
message
- the response
java.lang.IllegalArgumentException
- if the message is null
java.lang.IllegalStateException
- if a response has already been sentvoid sendRPY(Message message)
message
- the response
java.lang.IllegalArgumentException
- if the message is null
java.lang.IllegalStateException
- if a response has already been sent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |