Rational Developer for i
7.5.0

com.ibm.etools.systems.as400.debug.protocol
Class PReqVersion

java.lang.Object
  extended by com.ibm.etools.systems.as400.debug.protocol.PROTOCOL_Base
      extended by com.ibm.etools.systems.as400.debug.protocol.PROTOCOL_Request
          extended by com.ibm.etools.systems.as400.debug.protocol.PReqVersion

public class PReqVersion
extends PROTOCOL_Request

Class for Version request. NOTE NOTE NOTE NOTE THE FORMAT OF THIS REQUEST MUST ***NOT** CHANGE For the version handshake to work the format of this request must not change so that existing engines can handle the request and make a reply


Field Summary
static int LENGTH
           
 
Fields inherited from class com.ibm.etools.systems.as400.debug.protocol.PROTOCOL_Request
_request_code, _total_bytes
 
Fields inherited from class com.ibm.etools.systems.as400.debug.protocol.PROTOCOL_Base
_byteBuffer, DISPLAYDETAIL
 
Constructor Summary
PReqVersion(byte[] inBuffer, PROTOCOL_EngineSession engineSession)
          Construct a new EReqVersion from a byte buffer This constructor does not use the underlying base class to read in the header.
PReqVersion(int uiVersion)
          Fixed format for this request to maintain compatibility
 
Method Summary
protected  int fixedLen()
          Return the length of the fixed component
 int getFrontEndVersion()
          Get the front end version
 String getInternalName()
          This is for internal use only.
 void setFrontEndVersion(int front_end_version)
          Get the front end version
 void writeFormattedEPDC(DataOutputStream dataOutputStream, byte formatFlags)
          Write to the output stream an XML formatted representation of this EPDC class NOTE: This method should be implemented in all EPDC classes
 
Methods inherited from class com.ibm.etools.systems.as400.debug.protocol.PROTOCOL_Request
decodeRequestStream, getRequestCode, isSynchronous, output, varLen
 
Methods inherited from class com.ibm.etools.systems.as400.debug.protocol.PROTOCOL_Base
bytesAvailable, dumpEPDC, getByteBuffer, getDataInputStream, getEPDCEngineSession, getEPDCVersion, getOffset, getPlatformIdentifier, intAsBytes, markOffset, posBuffer, readChar, readExtString, readInt, readOffset, readShort, readStdString, setEPDCEngineSession, skipBytes, totalBytes, totalBytes, writeChar, writeInt, writeOffset, writeOffsetOrZero, writeShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LENGTH

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

PReqVersion

public PReqVersion(int uiVersion)
Fixed format for this request to maintain compatibility

Parameters:
uiVersion - - version

PReqVersion

public PReqVersion(byte[] inBuffer,
                   PROTOCOL_EngineSession engineSession)
            throws IOException
Construct a new EReqVersion from a byte buffer This constructor does not use the underlying base class to read in the header. This is because the version request must remain fixed in format so that all engines can read/write it.

Throws:
IOException
Method Detail

getFrontEndVersion

public int getFrontEndVersion()
Get the front end version


setFrontEndVersion

public void setFrontEndVersion(int front_end_version)
Get the front end version


fixedLen

protected int fixedLen()
Return the length of the fixed component

Overrides:
fixedLen in class PROTOCOL_Request

writeFormattedEPDC

public void writeFormattedEPDC(DataOutputStream dataOutputStream,
                               byte formatFlags)
Description copied from class: PROTOCOL_Base
Write to the output stream an XML formatted representation of this EPDC class NOTE: This method should be implemented in all EPDC classes

Overrides:
writeFormattedEPDC in class PROTOCOL_Request

getInternalName

public String getInternalName()
Description copied from class: PROTOCOL_Base
This is for internal use only. The default will return the name of the class. Where it is meaningful this should overridden

Overrides:
getInternalName in class PROTOCOL_Base
Returns:
internal string name for the request or reply

Rational Developer for i
7.5.0

Copyright 2009 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.