|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectRvCommand
AbstractRvCmd
AbstractRequestRvCmd
FileSendReqRvCmd
A rendezvous command used to attempt to send one or more files to another user.
| 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 | |
FileSendReqRvCmd(int requestType,
InvitationMessage message,
RvConnectionInfo connInfo,
FileSendBlock fileInfo)
Creates a new outgoing file send request command with the given properties. |
|
FileSendReqRvCmd(InvitationMessage message,
RvConnectionInfo connInfo,
FileSendBlock fileInfo)
Creates a new outgoing initial file send request with the given message, connection information, and file transfer information block. |
|
FileSendReqRvCmd(RecvRvIcbm icbm)
Creates a new file send request from the given incoming file send request RV ICBM. |
|
FileSendReqRvCmd(RvConnectionInfo connInfo)
Creates a new outgoing file send connection redirection command with the given connection information. |
|
| Method Summary | |
RvConnectionInfo |
getConnInfo()
Returns the connection information block sent in this request. |
FileSendBlock |
getFileSendBlock()
Returns an object containing information about the file or files being sent, or null if no such information was sent. |
InvitationMessage |
getMessage()
Returns the invitation message sent in this command, or null
if none was sent. |
protected boolean |
hasServiceData()
Returns whether this RV command's TLV list should contain a "service data block" TLV. |
java.lang.String |
toString()
|
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 FileSendReqRvCmd(RecvRvIcbm icbm)
icbm - an incoming file send request RV ICBM
public FileSendReqRvCmd(InvitationMessage message,
RvConnectionInfo connInfo,
FileSendBlock fileInfo)
AbstractRequestRvCmd.REQTYPE_INITIALREQUEST.
new FileSendReqRvCmd(REQTYPE_INITIALREQUEST, message,
connInfo, file).
message - an "invitation message," a message displayed to the user
upon receiving this request, or null to not include
an invitation messageconnInfo - a connection information block describing the connection
to be made, or null to not specify connection
informationfileInfo - an object describing the file or files being sentpublic FileSendReqRvCmd(RvConnectionInfo connInfo)
new FileSendReqRvCmd(REQTYPE_REDIRECT, null, connInfo,
null).
connInfo - a block of connection information describing the
connection to which a file send connection has been redirected
public FileSendReqRvCmd(int requestType,
InvitationMessage message,
RvConnectionInfo connInfo,
FileSendBlock fileInfo)
requestType - a request type, like AbstractRequestRvCmd.REQTYPE_INITIALREQUESTmessage - an "invitation message," a message displayed to the user
upon receiving this request, or null to not include
an invitation messageconnInfo - a connection information block describing the connection
to be made, or null to not specify connection
informationfileInfo - an object describing the file or files being sent| Method Detail |
public final InvitationMessage getMessage()
null
if none was sent.
public final RvConnectionInfo getConnInfo()
public final FileSendBlock getFileSendBlock()
null if no such information was sent.
public 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 | |||||||||