|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFlapCommand
SnacFlapCmd
A FLAP command that contains a SNAC packet as its FLAP data. This is how the majority of communication between a normal OSCAR client and server takes place. A SNAC packet is not really a "packet" but more appropriately a data structure inside of a channel-2 FLAP packet. Unfortunately for you, however, I've chosen to continue using the name "SNAC packet."
| Field Summary | |
static int |
CHANNEL_SNAC
The channel on which SNAC commands reside. |
| Constructor Summary | |
SnacFlapCmd(FlapPacket flapPacket)
Generates a SnacFlapCmd from the given packet. |
|
SnacFlapCmd(long requestId,
SnacCommand command)
Creates a new SnacFlapCmd with the given request ID that
uses the given SnacCommand to generate a SNAC packet to
write (embedded in a FLAP packet, of course) to a FLAP connection. |
|
| Method Summary | |
SnacPacket |
getSnacPacket()
Returns the SNAC packet embedded in this command, if any. |
java.lang.String |
toString()
|
void |
writeData(java.io.OutputStream out)
Writes this command's FLAP data to the given stream. |
| Methods inherited from class FlapCommand |
getChannel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CHANNEL_SNAC
| Constructor Detail |
public SnacFlapCmd(FlapPacket flapPacket)
SnacFlapCmd from the given packet.
flapPacket - the packet from which this command is to be generated
public SnacFlapCmd(long requestId,
SnacCommand command)
SnacFlapCmd with the given request ID that
uses the given SnacCommand to generate a SNAC packet to
write (embedded in a FLAP packet, of course) to a FLAP connection.
requestId - the request ID to use in this command's SNAC packetcommand - the command to use to generate a SNAC packet upon writing
to a FLAP connection| Method Detail |
public final SnacPacket getSnacPacket()
null if an invalid SNAC packet was sent in a channel-2
FLAP.)
public void writeData(java.io.OutputStream out)
throws java.io.IOException
FlapCommand
writeData in class FlapCommandout - the stream to which the FLAP data should be written
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 | |||||||||