|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRvCommand
AbstractRvCmd
AbstractAcceptRvCmd
A base class for "acceptance" rendezvous commands, or commands with no RV
data and a status code of RvCommand.RVSTATUS_ACCEPT
.
Field Summary |
Fields inherited from class RvCommand |
RVSTATUS_ACCEPT, RVSTATUS_DENY, RVSTATUS_REQUEST |
Constructor Summary | |
protected |
AbstractAcceptRvCmd(CapabilityBlock cap)
Creates a new outgoing RV "accept" command for an unencrypted rendezvous with the given associated capability block. |
protected |
AbstractAcceptRvCmd(CapabilityBlock cap,
boolean encrypted)
Creates a new outgoing RV "accept" command with the given associated capability block. |
protected |
AbstractAcceptRvCmd(RecvRvIcbm icbm)
Creates a new RV "accept" command from the given incoming acceptance RV ICBM. |
Method Summary | |
boolean |
isEncrypted()
Returns whether the rendezvous being accepted is encrypted ("secure"). |
java.lang.String |
toString()
|
protected void |
writeHeaderRvTlvs(java.io.OutputStream out)
Writes this RV command's "header TLV's" to the given stream. |
protected void |
writeRvTlvs(java.io.OutputStream out)
Provides a default implementation for writing this command's RV TLV's. |
Methods inherited from class AbstractRvCmd |
getRvTlvs, getServiceData, hasServiceData, writeRvData, writeServiceData |
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 |
protected AbstractAcceptRvCmd(RecvRvIcbm icbm)
icbm
- an incoming "acceptance" RV ICBMprotected AbstractAcceptRvCmd(CapabilityBlock cap)
AbstractAcceptRvCmd(cap, false)
.
cap
- the capability block associated with this RV commandprotected AbstractAcceptRvCmd(CapabilityBlock cap, boolean encrypted)
encrypted
is true
, this
acceptance RV command will indicate that a "secure" or "encrypted"
rendezvous is being accepted (such as a secure file transfer).
cap
- the capability block associated with this RV commandencrypted
- whether the rendezvous being accepted is a secure
rendezvousMethod Detail |
public final boolean isEncrypted()
protected final void writeHeaderRvTlvs(java.io.OutputStream out) throws java.io.IOException
AbstractRvCmd
AbstractRvCmd.writeRvTlvs(java.io.OutputStream)
; it
provides a means for subclasses to write a set of TLV's that are present
in all subclasses.
writeHeaderRvTlvs
in class AbstractRvCmd
out
- the stream to which to write
java.io.IOException
- if an I/O error occursprotected void writeRvTlvs(java.io.OutputStream out) throws java.io.IOException
writeRvTlvs
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 |