rpc.pdu
Class ResponseCoPdu

java.lang.Object
  extended by ndr.NdrObject
      extended by rpc.ConnectionOrientedPdu
          extended by rpc.pdu.ResponseCoPdu
All Implemented Interfaces:
java.lang.Cloneable, Fragmentable, ProtocolDataUnit

public class ResponseCoPdu
extends ConnectionOrientedPdu
implements Fragmentable


Field Summary
static int RESPONSE_TYPE
           
 
Fields inherited from class rpc.ConnectionOrientedPdu
AUTH_LENGTH_OFFSET, CALL_ID_OFFSET, callIdCounter, CONNECTION_ORIENTED_MAJOR_VERSION, DATA_REPRESENTATION_OFFSET, FLAGS_OFFSET, FRAG_LENGTH_OFFSET, HEADER_LENGTH, MAJOR_VERSION_OFFSET, MINOR_VERSION_OFFSET, MUST_RECEIVE_FRAGMENT_SIZE, PFC_CONC_MPX, PFC_DID_NOT_EXECUTE, PFC_FIRST_FRAG, PFC_LAST_FRAG, PFC_MAYBE, PFC_OBJECT_UUID, PFC_PENDING_CANCEL, TYPE_OFFSET
 
Fields inherited from class ndr.NdrObject
value
 
Constructor Summary
ResponseCoPdu()
           
 
Method Summary
 Fragmentable assemble(java.util.Iterator fragments)
           
 java.lang.Object clone()
           
 java.util.Iterator fragment(int size)
           
 int getAllocationHint()
           
 int getCancelCount()
           
 int getContextId()
           
 byte[] getStub()
           
 int getType()
           
protected  void readBody(NetworkDataRepresentation ndr)
           
protected  void readPdu(NetworkDataRepresentation ndr)
           
protected  void readStub(NetworkDataRepresentation ndr)
           
 void setAllocationHint(int allocationHint)
           
 void setCancelCount(int cancelCount)
           
 void setContextId(int contextId)
           
 void setStub(byte[] stub)
           
protected  void writeBody(NetworkDataRepresentation ndr)
           
protected  void writePdu(NetworkDataRepresentation ndr)
           
protected  void writeStub(NetworkDataRepresentation ndr)
           
 
Methods inherited from class rpc.ConnectionOrientedPdu
decode, encode, getAuthenticatorLength, getCallId, getFlag, getFlags, getFormat, getFragmentLength, getMajorVersion, getMinorVersion, readHeader, setAuthenticatorLength, setCallId, setFlag, setFlags, setFormat, setFragmentLength, setMinorVersion, writeHeader
 
Methods inherited from class ndr.NdrObject
getOpnum, read, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESPONSE_TYPE

public static final int RESPONSE_TYPE
See Also:
Constant Field Values
Constructor Detail

ResponseCoPdu

public ResponseCoPdu()
Method Detail

getType

public int getType()
Specified by:
getType in interface ProtocolDataUnit
Specified by:
getType in class ConnectionOrientedPdu

getStub

public byte[] getStub()

setStub

public void setStub(byte[] stub)

getAllocationHint

public int getAllocationHint()

setAllocationHint

public void setAllocationHint(int allocationHint)

getContextId

public int getContextId()

setContextId

public void setContextId(int contextId)

getCancelCount

public int getCancelCount()

setCancelCount

public void setCancelCount(int cancelCount)

readPdu

protected void readPdu(NetworkDataRepresentation ndr)
Overrides:
readPdu in class ConnectionOrientedPdu

writePdu

protected void writePdu(NetworkDataRepresentation ndr)
Overrides:
writePdu in class ConnectionOrientedPdu

readBody

protected void readBody(NetworkDataRepresentation ndr)
Overrides:
readBody in class ConnectionOrientedPdu

writeBody

protected void writeBody(NetworkDataRepresentation ndr)
Overrides:
writeBody in class ConnectionOrientedPdu

readStub

protected void readStub(NetworkDataRepresentation ndr)

writeStub

protected void writeStub(NetworkDataRepresentation ndr)

fragment

public java.util.Iterator fragment(int size)
Specified by:
fragment in interface Fragmentable

assemble

public Fragmentable assemble(java.util.Iterator fragments)
                      throws java.io.IOException
Specified by:
assemble in interface Fragmentable
Throws:
java.io.IOException

clone

public java.lang.Object clone()
Specified by:
clone in interface Fragmentable
Overrides:
clone in class java.lang.Object