|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
IcbmCommand
RvResponse
A SNAC command indicating that a rendezvous failed. Note that this is always sent by WinAIM after a "Send Buddy List" command is sent to it, whether or not the user accepts or declines the Send Buddy List.
0x04
, command 0x0b
Field Summary | |
static int |
CODE_DECLINED
A code indicating that a rendezvous was declined. |
static int |
CODE_NOT_ACCEPTING
A code indicating that a client is not accepting requests of the given type. |
static int |
CODE_NOT_SUPPORTED
A code indicating that a rendezvous type is not supported by the client. |
Fields inherited from class IcbmCommand |
CMD_ICBM, CMD_MISSED, CMD_MSG_ACK, CMD_PARAM_INFO, CMD_PARAM_INFO_REQ, CMD_RECV_TYPING, CMD_RV_RESPONSE, CMD_SEND_ICBM, CMD_SEND_TYPING, CMD_SET_PARAM_INFO, CMD_WARN, FAMILY_ICBM, FAMILY_INFO |
Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
Constructor Summary | |
|
RvResponse(long rvSessionId,
int icbmChannel,
java.lang.String sn,
int resultCode)
Creates a new outgoing rendezvous error command with the given properties. |
protected |
RvResponse(SnacPacket packet)
Creates a new rendezvous response command from the given incoming SNAC packet. |
Method Summary | |
int |
getChannel()
Returns the ICBM channel on which the rendezvous to which this command is a response was received. |
int |
getResultCode()
Returns the associated error code. |
long |
getRvSessionId()
Returns the rendezvous session ID of the rendezvous being responded-to. |
java.lang.String |
getScreenname()
Returns the screenname of the user whose rendezvous is being responded-to, or that of the user who is responding to a rendezvous we sent, depending on whether this is an outgoing or incoming response. |
java.lang.String |
toString()
|
void |
writeData(java.io.OutputStream out)
Writes this command's SNAC data block to the given stream. |
Methods inherited from class SnacCommand |
getCommand, getFamily, getFlag1, getFlag2 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CODE_NOT_SUPPORTED
public static final int CODE_DECLINED
public static final int CODE_NOT_ACCEPTING
Constructor Detail |
protected RvResponse(SnacPacket packet)
packet
- an incoming rendezvous response packetpublic RvResponse(long rvSessionId, int icbmChannel, java.lang.String sn, int resultCode)
rvSessionId
- the rendezvous session IDof the rendezvous being
responded-toicbmChannel
- the ICBM channel on which the original rendezvous was
sentsn
- the screenname whose rendezvous is being responded-toresultCode
- a result code, like CODE_NOT_SUPPORTED
Method Detail |
public final long getRvSessionId()
0
when coming from
a Windows AIM client.
public final int getChannel()
public final java.lang.String getScreenname()
public final int getResultCode()
CODE_DECLINED
, CODE_NOT_ACCEPTING
, CODE_NOT_SUPPORTED
.
public void writeData(java.io.OutputStream out) throws java.io.IOException
SnacCommand
writeData
in class SnacCommand
out
- the stream to which to write the SNAC data
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |