|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRvCommand
AbstractRvCmd
AbstractRequestRvCmd
DirectIMReqRvCmd
A rendezvous command used to request or redirect a Direct IM ("IM Image") session. Note that this command may be sent multiple times during a session to use multiple redirects (until one works).
net.kano.joscar.rvproto.directim
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 | |
DirectIMReqRvCmd(int requestType,
RvConnectionInfo connInfo)
Creates a new outgoing direct IM request / redirect (depending on the value of requestType ) with the given connection information. |
|
DirectIMReqRvCmd(RecvRvIcbm icbm)
Creates a new direct IM request RV command from the given incoming direct IM request RV ICBM. |
|
DirectIMReqRvCmd(RvConnectionInfo connInfo)
Creates a new outgoing initial direct IM request. |
Method Summary | |
RvConnectionInfo |
getConnInfo()
Returns the connection information sent in this request. |
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 |
Constructor Detail |
public DirectIMReqRvCmd(RecvRvIcbm icbm)
icbm
- an incoming direct IM request RV ICBM commandpublic DirectIMReqRvCmd(RvConnectionInfo connInfo)
AbstractRequestRvCmd.REQTYPE_INITIALREQUEST
.
connInfo
- a connection information block describing the connection
to be madepublic DirectIMReqRvCmd(int requestType, RvConnectionInfo connInfo)
requestType
) with the given connection information.
requestType
- the "request type" for this command, like AbstractRequestRvCmd.REQTYPE_REDIRECT
connInfo
- a connection information block describing the connection
to be madeMethod Detail |
public final RvConnectionInfo getConnInfo()
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 boolean hasServiceData()
AbstractRvCmd
false
for an object, writeServiceData
will
never be called on that object. The default implementation of this method
returns true
.
hasServiceData
in class AbstractRvCmd
AbstractRvCmd.writeServiceData(java.io.OutputStream)
protected 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 |