Class FwdOpenRsp
- java.lang.Object
-
- com.automation_pros.odva.cip.requests.CipReply
-
- com.automation_pros.odva.cip.requests.FwdOpenRsp
-
- All Implemented Interfaces:
CipMessage
,java.io.Externalizable
,java.io.Serializable
public class FwdOpenRsp extends CipReply
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FwdOpenRsp(int svc, int stat, java.nio.ByteBuffer buf, short[] extras, FwdOpenReq fopen)
FwdOpenRsp(int service, ConxInstance conx)
FwdOpenRsp(int service, CipException e, byte remPath)
FwdOpenRsp(int service, CipException e, java.nio.ByteBuffer payload)
FwdOpenRsp(CipReply reply)
FwdOpenRsp(CipReply rsp, FwdOpenReq fopen)
FwdOpenRsp(FwdOpenReq fopen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
appString()
protected void
copyRequest(FwdOpenReq fopen)
ConxInstance
getConx()
CipMsgProcessor
getMsgProc()
FwdOpenReq
getRequest()
int
payloadLength()
Subclasses must override this unless they populate the payload field.void
putPayload(java.nio.ByteBuffer dest)
Subclasses that encode fields into their payloads must override this.void
setPayload(java.nio.ByteBuffer source)
Subclasses should override this method to permit reparsing of protocol packets into the desired request type.java.lang.String
toString()
-
Methods inherited from class com.automation_pros.odva.cip.requests.CipReply
bytes, decode, getException, getExtras, getPayload, getServiceCode, getStatusCode, payloadBytes, payloadString, put, readExternal, readResolve, set, setException, setRequest, toBytes, writeExternal
-
-
-
-
Field Detail
-
conx
public java.lang.Object conx
-
O2TconnID
public int O2TconnID
-
T2OconnID
public int T2OconnID
-
connSN
public short connSN
-
vendor
public short vendor
-
origSN
public int origSN
-
O2Tapi
public int O2Tapi
-
T2Oapi
public int T2Oapi
-
appreply
public byte[] appreply
-
hasRemPath
public boolean hasRemPath
-
remPath
public byte remPath
-
-
Constructor Detail
-
FwdOpenRsp
public FwdOpenRsp(CipReply reply)
-
FwdOpenRsp
public FwdOpenRsp(int service, CipException e, java.nio.ByteBuffer payload)
-
FwdOpenRsp
public FwdOpenRsp(int service, CipException e, byte remPath)
-
FwdOpenRsp
public FwdOpenRsp(int svc, int stat, java.nio.ByteBuffer buf, short[] extras, FwdOpenReq fopen)
-
FwdOpenRsp
public FwdOpenRsp(CipReply rsp, FwdOpenReq fopen)
-
FwdOpenRsp
public FwdOpenRsp(FwdOpenReq fopen)
-
FwdOpenRsp
public FwdOpenRsp(int service, ConxInstance conx)
-
-
Method Detail
-
copyRequest
protected void copyRequest(FwdOpenReq fopen)
-
getConx
public ConxInstance getConx()
-
getMsgProc
public CipMsgProcessor getMsgProc()
-
setPayload
public void setPayload(java.nio.ByteBuffer source)
Description copied from class:CipReply
Subclasses should override this method to permit reparsing of protocol packets into the desired request type.- Specified by:
setPayload
in interfaceCipMessage
- Overrides:
setPayload
in classCipReply
- Parameters:
source
- Source buffer containing the encoded new payload.
-
putPayload
public void putPayload(java.nio.ByteBuffer dest)
Description copied from class:CipReply
Subclasses that encode fields into their payloads must override this.- Specified by:
putPayload
in interfaceCipMessage
- Overrides:
putPayload
in classCipReply
- Parameters:
dest
- Destination buffer for the encoded payload.
-
payloadLength
public int payloadLength()
Description copied from class:CipReply
Subclasses must override this unless they populate the payload field.- Specified by:
payloadLength
in interfaceCipMessage
- Overrides:
payloadLength
in classCipReply
- Returns:
- The byte length of the encoded payload only.
-
getRequest
public FwdOpenReq getRequest()
- Overrides:
getRequest
in classCipReply
-
appString
protected java.lang.String appString()
-
-