public class OFErrorCauseData extends Object implements Writeable, PrimitiveSinkable
OFErrorMsg
message
that contains a byte serialization of the offending message.
This attempts to parse the offending message on demand, and if successful
will present the parsed message.Modifier and Type | Field and Description |
---|---|
static OFErrorCauseData |
NONE
A default 'empty' cause.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte[] |
getData() |
com.google.common.base.Optional<OFMessage> |
getParsedMessage() |
int |
hashCode() |
static OFErrorCauseData |
of(byte[] data,
OFVersion version) |
void |
putTo(com.google.common.hash.PrimitiveSink sink) |
static OFErrorCauseData |
read(io.netty.buffer.ByteBuf bb,
int length,
OFVersion version) |
String |
toString() |
void |
writeTo(io.netty.buffer.ByteBuf bb) |
public static final OFErrorCauseData NONE
public static OFErrorCauseData of(byte[] data, OFVersion version)
public byte[] getData()
public com.google.common.base.Optional<OFMessage> getParsedMessage()
public static OFErrorCauseData read(io.netty.buffer.ByteBuf bb, int length, OFVersion version)
public void putTo(com.google.common.hash.PrimitiveSink sink)
putTo
in interface PrimitiveSinkable
public void writeTo(io.netty.buffer.ByteBuf bb)
Copyright © 2015. All rights reserved.