public class OFError extends OFMessage implements OFMessageFactoryAware
Modifier and Type | Class and Description |
---|---|
static class |
OFError.OFBadActionCode |
static class |
OFError.OFBadRequestCode |
static class |
OFError.OFErrorType |
static class |
OFError.OFFlowModFailedCode |
static class |
OFError.OFHelloFailedCode |
static class |
OFError.OFPortModFailedCode |
static class |
OFError.OFQueueOpFailedCode |
Modifier and Type | Field and Description |
---|---|
protected byte[] |
error |
protected short |
errorCode |
protected boolean |
errorIsAscii |
protected short |
errorType |
protected OFMessageFactory |
factory |
static int |
MINIMUM_LENGTH |
protected int |
vendor |
protected short |
vendorErrorCode |
protected int |
vendorErrorType |
Constructor and Description |
---|
OFError() |
OFError(OFError.OFErrorType errorType)
convenience constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte[] |
getError() |
short |
getErrorCode() |
short |
getErrorType() |
OFMessageFactory |
getFactory() |
OFMessage |
getOffendingMsg() |
short |
getVendorErrorCode() |
int |
getVendorErrorType() |
int |
hashCode() |
boolean |
isErrorIsAscii() |
boolean |
isVendorError() |
void |
readFrom(org.jboss.netty.buffer.ChannelBuffer data)
Read this message off the wire from the specified ByteBuffer
|
void |
setError(byte[] error) |
void |
setErrorCode(OFError.OFBadActionCode code) |
void |
setErrorCode(OFError.OFBadRequestCode code) |
void |
setErrorCode(OFError.OFFlowModFailedCode code) |
void |
setErrorCode(OFError.OFHelloFailedCode code) |
void |
setErrorCode(OFError.OFPortModFailedCode code) |
void |
setErrorCode(OFError.OFQueueOpFailedCode code) |
void |
setErrorCode(short errorCode) |
void |
setErrorIsAscii(boolean errorIsAscii) |
void |
setErrorType(OFError.OFErrorType type) |
void |
setErrorType(short errorType) |
void |
setMessageFactory(OFMessageFactory factory)
Sets the message factory for this object
|
void |
setOffendingMsg(OFMessage offendingMsg)
Write this offending message into the payload of the Error message
|
void |
setVendorErrorCode(short vendorErrorCode) |
void |
setVendorErrorType(int vendorErrorType) |
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer data)
Write this message's binary format to the specified ByteBuffer
|
getData, getDataAsString, getLength, getLengthU, getMessageStore, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid, toString
public static int MINIMUM_LENGTH
protected short errorType
protected short errorCode
protected int vendor
protected int vendorErrorType
protected short vendorErrorCode
protected OFMessageFactory factory
protected byte[] error
protected boolean errorIsAscii
public OFError()
public OFError(OFError.OFErrorType errorType)
public short getErrorType()
public void setErrorType(short errorType)
errorType
- the errorType to setpublic void setErrorType(OFError.OFErrorType type)
public boolean isVendorError()
public short getErrorCode()
public void setErrorCode(OFError.OFHelloFailedCode code)
errorCode
- the errorCode to setpublic void setErrorCode(short errorCode)
public void setErrorCode(OFError.OFBadRequestCode code)
public void setErrorCode(OFError.OFBadActionCode code)
public void setErrorCode(OFError.OFFlowModFailedCode code)
public void setErrorCode(OFError.OFPortModFailedCode code)
public void setErrorCode(OFError.OFQueueOpFailedCode code)
public int getVendorErrorType()
public void setVendorErrorType(int vendorErrorType)
public short getVendorErrorCode()
public void setVendorErrorCode(short vendorErrorCode)
public OFMessage getOffendingMsg() throws MessageParseException
MessageParseException
public void setOffendingMsg(OFMessage offendingMsg)
offendingMsg
- public OFMessageFactory getFactory()
public void setMessageFactory(OFMessageFactory factory)
OFMessageFactoryAware
setMessageFactory
in interface OFMessageFactoryAware
public byte[] getError()
public void setError(byte[] error)
error
- the error to setpublic boolean isErrorIsAscii()
public void setErrorIsAscii(boolean errorIsAscii)
errorIsAscii
- the errorIsAscii to setpublic void readFrom(org.jboss.netty.buffer.ChannelBuffer data)
OFMessage
public void writeTo(org.jboss.netty.buffer.ChannelBuffer data)
OFMessage
Copyright © 2015. All rights reserved.