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.StringappString()protected voidcopyRequest(FwdOpenReq fopen)ConxInstancegetConx()CipMsgProcessorgetMsgProc()FwdOpenReqgetRequest()intpayloadLength()Subclasses must override this unless they populate the payload field.voidputPayload(java.nio.ByteBuffer dest)Subclasses that encode fields into their payloads must override this.voidsetPayload(java.nio.ByteBuffer source)Subclasses should override this method to permit reparsing of protocol packets into the desired request type.java.lang.StringtoString()-
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:CipReplySubclasses should override this method to permit reparsing of protocol packets into the desired request type.- Specified by:
setPayloadin interfaceCipMessage- Overrides:
setPayloadin classCipReply- Parameters:
source- Source buffer containing the encoded new payload.
-
putPayload
public void putPayload(java.nio.ByteBuffer dest)
Description copied from class:CipReplySubclasses that encode fields into their payloads must override this.- Specified by:
putPayloadin interfaceCipMessage- Overrides:
putPayloadin classCipReply- Parameters:
dest- Destination buffer for the encoded payload.
-
payloadLength
public int payloadLength()
Description copied from class:CipReplySubclasses must override this unless they populate the payload field.- Specified by:
payloadLengthin interfaceCipMessage- Overrides:
payloadLengthin classCipReply- Returns:
- The byte length of the encoded payload only.
-
getRequest
public FwdOpenReq getRequest()
- Overrides:
getRequestin classCipReply
-
appString
protected java.lang.String appString()
-
-