|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents the operations available for messages of type MSG.
Field Summary |
Fields inherited from interface org.beepcore.beep.core.Message |
MESSAGE_TYPE_ANS, MESSAGE_TYPE_ERR, MESSAGE_TYPE_MSG, MESSAGE_TYPE_NUL, MESSAGE_TYPE_RPY, MESSAGE_TYPE_UNK |
Method Summary | |
MessageStatus |
sendANS(OutputDataStream stream)
Sends an ANS reply to this MSG message. |
MessageStatus |
sendERR(BEEPError error)
Sends an ERR reply to this MSG message. |
MessageStatus |
sendERR(int code,
java.lang.String diagnostic)
Sends an ERR reply to this MSG message. |
MessageStatus |
sendERR(int code,
java.lang.String diagnostic,
java.lang.String xmlLang)
Sends an ERR reply to this MSG message. |
MessageStatus |
sendNUL()
Sends a reply of type NUL to this MSG message. |
MessageStatus |
sendRPY(OutputDataStream stream)
Sends a RPY reply to this MSG message. |
Methods inherited from interface org.beepcore.beep.core.Message |
getAnsno, getChannel, getDataStream, getMessageType, getMsgno |
Method Detail |
public MessageStatus sendANS(OutputDataStream stream) throws BEEPException
sendANS
in interface Message
stream
- Payload to be sent.
BEEPException
OutputDataStream
,
MessageStatus
,
sendNUL()
public MessageStatus sendERR(BEEPError error) throws BEEPException
sendERR
in interface Message
error
- Error to send in the form of BEEPError
.
BEEPException
BEEPError
,
MessageStatus
public MessageStatus sendERR(int code, java.lang.String diagnostic) throws BEEPException
sendERR
in interface Message
code
- code
attibute in error
element.diagnostic
- Message for error
element.
BEEPException
MessageStatus
public MessageStatus sendERR(int code, java.lang.String diagnostic, java.lang.String xmlLang) throws BEEPException
sendERR
in interface Message
code
- code
attibute in error
element.diagnostic
- Message for error
element.xmlLang
- xml:lang
attibute in error
element.
BEEPException
MessageStatus
public MessageStatus sendNUL() throws BEEPException
sendNUL
in interface Message
BEEPException
MessageStatus
,
sendANS(org.beepcore.beep.core.OutputDataStream)
public MessageStatus sendRPY(OutputDataStream stream) throws BEEPException
sendRPY
in interface Message
stream
- Payload to be sent.
BEEPException
OutputDataStream
,
MessageStatus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |