rpc.pdu
Class FaultCoPdu

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

public class FaultCoPdu
extends ConnectionOrientedPdu
implements FaultCodes, Fragmentable


Field Summary
static int FAULT_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
 
Fields inherited from interface rpc.FaultCodes
BAD_ACTIVITY_ID, INVALID_CHECKSUM, INVALID_CRC, INVALID_PRESENTATION_CONTEXT_ID, MANAGER_NOT_ENTERED, OPERATION_RANGE_ERROR, OUTPUT_ARGUMENTS_TOO_BIG, PROTOCOL_ERROR, RPC_VERSION_MISMATCH, SERVER_TOO_BUSY, UNKNOWN_INTERFACE, UNSPECIFIED_REJECTION, UNSUPPORTED_AUTHENTICATION_LEVEL, UNSUPPORTED_TYPE, WHO_ARE_YOU_FAILED, WRONG_BOOT_TIME, YOU_CRASHED
 
Constructor Summary
FaultCoPdu()
           
 
Method Summary
 Fragmentable assemble(java.util.Iterator fragments)
           
 java.lang.Object clone()
           
 java.util.Iterator fragment(int size)
           
 int getAllocationHint()
           
 int getCancelCount()
           
 int getContextId()
           
 int getStatus()
           
 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 setStatus(int status)
           
 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

FAULT_TYPE

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

FaultCoPdu

public FaultCoPdu()
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)

getStatus

public int getStatus()

setStatus

public void setStatus(int status)

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