|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectRvCommand
AbstractRvCmd
AbstractRequestRvCmd
AddinsReqRvCmd
A rendezvous command used to invite a user to use a specified add-in. For
example, AOL Instant Messenger for Windows uses this command invite a user to
play MS Hearts and Quake II.
An add-in invitation contains several fields, including a URI that describes
the add-in (in case the recipient does not have that add-in), a sixteen-byte
"UUID" block supposedly unique to that add-in type, an add-in name, and the
sender's Windows network name (like \\NETWORKNAME).
Note: for information on the format of the URI, see the getAddinUri documentation.
| Field Summary | |
static int |
CODE_DEFAULT
The "code" value that is always sent by WinAIM. |
static long |
FLAGS_DEFAULT
The "flags" value that is always sent by WinAIM. |
| Fields inherited from class AbstractRequestRvCmd |
FPRESENT_DEFAULT, REQTYPE_INITIALREQUEST, REQTYPE_REDIRECT |
| Fields inherited from class RvCommand |
RVSTATUS_ACCEPT, RVSTATUS_DENY, RVSTATUS_REQUEST |
| Constructor Summary | |
AddinsReqRvCmd(int code,
java.lang.String addinUri,
ByteBlock uuid,
java.lang.String addinName,
java.lang.String computerName,
long flags,
InvitationMessage invMessage)
Creates a new outgoing addins invitation request RV command with the given properties. |
|
AddinsReqRvCmd(RecvRvIcbm icbm)
Creates a new addins invitation command from the given incoming addins request RV ICBM. |
|
| Method Summary | |
java.lang.String |
getAddinName()
Returns the name of the associated add-in type. |
java.lang.String |
getAddinUri()
Returns a URI that describes the associated add-in type, or null if none was sent.
|
ByteBlock |
getAddinUuid()
Returns the add-in unique ID ("UUID") block associated with the associated addin type, or null if none was sent. |
int |
getCode()
Returns a "code" sent in this command. |
java.lang.String |
getComputerName()
Returns the Windows network name of the sender. |
long |
getFlags()
Returns a set of "flags" sent in this add-ins invitation. |
protected boolean |
hasServiceData()
Returns whether this RV command's TLV list should contain a "service data block" TLV. |
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, 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 |
| Field Detail |
public static final int CODE_DEFAULT
public static final long FLAGS_DEFAULT
| Constructor Detail |
public AddinsReqRvCmd(RecvRvIcbm icbm)
icbm - an incoming add-in request rendezvous ICBM command
public AddinsReqRvCmd(int code,
java.lang.String addinUri,
ByteBlock uuid,
java.lang.String addinName,
java.lang.String computerName,
long flags,
InvitationMessage invMessage)
null or
-1 (depending on the argument's type, obviously) to indicate
that that field sholdn't be sent in this invitation command.
code - a "code" for this invitation; normally CODE_DEFAULTaddinUri - a URI describing the type of add-in to which the
recipient is being invited (see getAddinUri() for details)uuid - a sixteen-byte block of data unique to the associated add-in
typeaddinName - the name of the associated add-in, like "MSHearts" or
"QuakeII"computerName - the Windows network name of the sender, like
COMPUTERNAME in the network filename
\\COMPUTERNAME\FILE.HTML"flags - a set of flags to send; normally FLAGS_DEFAULTinvMessage - a message to send with this invitation| Method Detail |
public final int getCode()
CODE_DEFAULT (0) and its significance is
unknown.
-1 if
none was sentpublic final java.lang.String getAddinUri()
null if none was sent.
aim:AddGame?name=MSHearts&go1st=true&multiplayer=true&url=http://ww w.microsoft.com&cmd=%25m&servercmd=%20&hint=Both%20machines%20must% 20be%20running%20Win95%3CBR%3Eor%20Win98%20and%20be%20on%20the%20sa me%20local%20network.%3CBR%3EWhen%20you%20send%20invite,%20choose%2 0'I%20want%20to%20be%3CBR%3Edealer'%20and%20click%20on%20OK%20*befo re*%20buddy%3CBR%3Eresponds%20(so%20act%20fast).%20*After*%20buddy% 3CBR%3Eresponds,%20press%20F2%20to%20start%20game.After decoding with the Java API's
URLDecoder and then
parsing a bit more this becomes:
| Name | Value |
|---|---|
name | MSHearts |
go1st | true |
multiplayer | true |
url | http://www.microsoft.com |
cmd | %m |
servercmd | [a single space] |
hint |
Both machines must be running Win95<BR> |
null if none was sentpublic final ByteBlock getAddinUuid()
null if none was sent.
public final java.lang.String getAddinName()
"MSHearts" and "QuakeII" that may be used
to uniquely identify an add-in.
public final java.lang.String getComputerName()
COMPUTERNAME in the network pathname
\\COMPUTERNAME\FILE.HTML.
public final long getFlags()
FLAGS_DEFAULT (0).
protected void writeRvTlvs(java.io.OutputStream out)
throws java.io.IOException
AbstractRvCmd
writeRvTlvs in class AbstractRvCmdout - the stream to which to write
java.io.IOException - if an I/O error occursprotected boolean hasServiceData()
AbstractRvCmdfalse for an object, writeServiceData will
never be called on that object. The default implementation of this method
returns true.
hasServiceData in class AbstractRvCmdAbstractRvCmd.writeServiceData(java.io.OutputStream)
protected void writeServiceData(java.io.OutputStream out)
throws java.io.IOException
AbstractRvCmdAbstractRvCmd.hasServiceData() returns false. The default
implementation of this method does not write any data to the stream.
writeServiceData in class AbstractRvCmdout - 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 | |||||||||