|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRvCommand
AbstractRvCmd
AbstractRequestRvCmd
ChatInvitationRvCmd
A rendezvous command used to invite a user to a ("secure" or normal) chat room.
Field Summary |
Fields inherited from class AbstractRequestRvCmd |
FPRESENT_DEFAULT, REQTYPE_INITIALREQUEST, REQTYPE_REDIRECT |
Fields inherited from class RvCommand |
RVSTATUS_ACCEPT, RVSTATUS_DENY, RVSTATUS_REQUEST |
Constructor Summary | |
ChatInvitationRvCmd(MiniRoomInfo roomInfo,
InvitationMessage message)
Creates a new outgoing chat room invitation command for the room described in the given block and with the given invitation message. |
|
ChatInvitationRvCmd(MiniRoomInfo roomInfo,
InvitationMessage message,
ByteBlock securityInfo)
Creates a new outgoing chat room invitation command for the room described in the given block and with the given invitation message. |
|
ChatInvitationRvCmd(RecvRvIcbm icbm)
Creates a new chat room invitation RV command from the given incoming chat room invitation RV ICBM command. |
Method Summary | |
InvitationMessage |
getInvMessage()
Returns the invitation message, if any, included in this invitation. |
MiniRoomInfo |
getRoomInfo()
Returns the room information block describing the chat room to which the recipient is being invited. |
ByteBlock |
getSecurityInfo()
Returns the block of security information sent in this chat room invitation, if any. |
java.lang.String |
toString()
|
protected void |
writeRvTlvs(java.io.OutputStream out)
Writes this RV command's list of rendezvous TLV's to the given stream. |
protected void |
writeServiceData(java.io.OutputStream out)
Writes this RV command's "service data block." |
Methods inherited from class AbstractRequestRvCmd |
getRequestType, isFPresent, writeHeaderRvTlvs |
Methods inherited from class AbstractRvCmd |
getRvTlvs, getServiceData, hasServiceData, writeRvData |
Methods inherited from class RvCommand |
getCapabilityBlock, getRvStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ChatInvitationRvCmd(RecvRvIcbm icbm)
icbm
- an incoming chat room invitation rendezvous ICBM commandpublic ChatInvitationRvCmd(MiniRoomInfo roomInfo, InvitationMessage message)
message
is null
, no invitation message
will be sent with this invitation.
roomInfo
argument should
be retrieved from the server's RoomResponse
command's room information
block (although the same information is provided in other places as
well). See RoomResponse.getRoomInfo()
and MiniRoomInfo.MiniRoomInfo(net.kano.joscar.snaccmd.FullRoomInfo)
for
details.
roomInfo
- a room information block describing the chat room to
which the recipient is being invitedmessage
- an invitation message to send with this invitation, or
null
for noneRoomResponse
public ChatInvitationRvCmd(MiniRoomInfo roomInfo, InvitationMessage message, ByteBlock securityInfo)
message
is null
, no invitation message
will be sent with this invitation.
roomInfo
argument should
be retrieved from the server's RoomResponse
command's room information
block (although the same information is provided in other places as
well). See RoomResponse.getRoomInfo()
and MiniRoomInfo.MiniRoomInfo(net.kano.joscar.snaccmd.FullRoomInfo)
for
details.
roomInfo
- a room information block describing the chat room to
which the recipient is being invitedmessage
- an invitation message to send with this invitation, or
null
for nonesecurityInfo
- a block of secure chat room informationRoomResponse
Method Detail |
public final InvitationMessage getInvMessage()
null
if none was includedpublic final ByteBlock getSecurityInfo()
public final MiniRoomInfo getRoomInfo()
null
if,
for some reason, no room information block was sent. (This is, however,
not normal behavior.)
null
if none was sent)protected void writeRvTlvs(java.io.OutputStream out) throws java.io.IOException
AbstractRvCmd
writeRvTlvs
in class AbstractRvCmd
out
- the stream to which to write
java.io.IOException
- if an I/O error occursprotected void writeServiceData(java.io.OutputStream out) throws java.io.IOException
AbstractRvCmd
AbstractRvCmd.hasServiceData()
returns false
. The default
implementation of this method does not write any data to the stream.
writeServiceData
in class AbstractRvCmd
out
- the stream to which to write
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 |