Class CIPEncapsulationPacket
- java.lang.Object
-
- org.apache.plc4x.java.abeth.readwrite.CIPEncapsulationPacket
-
- All Implemented Interfaces:
Message,Serializable
- Direct Known Subclasses:
CIPEncapsulationConnectionRequest,CIPEncapsulationConnectionResponse,CIPEncapsulationReadRequest,CIPEncapsulationReadResponse
public abstract class CIPEncapsulationPacket extends Object implements Message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCIPEncapsulationPacket.CIPEncapsulationPacketBuilder
-
Field Summary
Fields Modifier and Type Field Description protected longoptionsprotected List<Short>senderContextprotected longsessionHandleprotected longstatus
-
Constructor Summary
Constructors Constructor Description CIPEncapsulationPacket(long sessionHandle, long status, List<Short> senderContext, long options)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)abstract IntegergetCommandType()intgetLengthInBits()intgetLengthInBytes()longgetOptions()List<Short>getSenderContext()longgetSessionHandle()longgetStatus()inthashCode()voidserialize(WriteBuffer writeBuffer)protected abstract voidserializeCIPEncapsulationPacketChild(WriteBuffer writeBuffer)static CIPEncapsulationPacketstaticParse(ReadBuffer readBuffer)static CIPEncapsulationPacketstaticParse(ReadBuffer readBuffer, Object... args)StringtoString()
-
-
-
Method Detail
-
getCommandType
public abstract Integer getCommandType()
-
getSessionHandle
public long getSessionHandle()
-
getStatus
public long getStatus()
-
getOptions
public long getOptions()
-
serializeCIPEncapsulationPacketChild
protected abstract void serializeCIPEncapsulationPacketChild(WriteBuffer writeBuffer) throws SerializationException
- Throws:
SerializationException
-
serialize
public void serialize(WriteBuffer writeBuffer) throws SerializationException
- Specified by:
serializein interfaceSerializable- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()
- Specified by:
getLengthInBytesin interfaceMessage
-
getLengthInBits
public int getLengthInBits()
- Specified by:
getLengthInBitsin interfaceMessage
-
staticParse
public static CIPEncapsulationPacket staticParse(ReadBuffer readBuffer, Object... args) throws ParseException
- Throws:
ParseException
-
staticParse
public static CIPEncapsulationPacket staticParse(ReadBuffer readBuffer) throws ParseException
- Throws:
ParseException
-
-