public class OfmMutableMultipartReply extends OfmMultipartReply implements MutableMessage
OfmMultipartReply.OpenflowMessage.Headerlength| Modifier and Type | Method and Description |
|---|---|
OfmMutableMultipartReply |
body(MultipartBody body)
Sets the body of this multipart reply; Since 1.0.
|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutableMultipartReply |
setMoreFlag()
Sets the REPLY_MORE flag.
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getBody, getFlags, getMultipartType, hasMore, toDebugString, validatedecodeHeader, getType, getVersion, getXid, hex, hex, lengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringpublic void clearXid()
MutableMessageclearXid in interface MutableMessagepublic OpenflowMessage toImmutable()
MutableMessage
It is expected that the reference to this mutable message will be
dropped. Note that all method calls invoked on a
MutableMessage after toImmutable() has been invoked
will result in an InvalidMutableException being thrown.
toImmutable in interface MutableMessagepublic boolean writable()
MutableObject#toImmutable() method (defined on a sub-interface)
has not yet been invoked.writable in interface MutableObjectpublic String toString()
toString in class OfmMultipartReplypublic OfmMutableMultipartReply body(MultipartBody body)
body - the multipart body for this replyInvalidMutableException - if this instance is no longer writableNullPointerException - if body is nullVersionMismatchException - if the body is not the same version
as this instancepublic OfmMutableMultipartReply setMoreFlag()
The presence of this flag indicates to the receiver that more (related)
multipart-reply messages are on their way; Only the last reply
in such a sequence should have this flag false (cleared).
The default setting for this flag is false; calling this
method will latch the flag to true.
InvalidMutableException - if this instance is no longer writableCopyright © 2014. All Rights Reserved.