public class SipHeaderImpl extends Object implements SipHeader
| Constructor and Description |
|---|
SipHeaderImpl(Buffer name,
Buffer value) |
| Modifier and Type | Method and Description |
|---|---|
SipHeader |
clone() |
SipHeader |
ensure()
If this method actually gets called it means that we are the As most things in this library are done lazily, such as framing headers, you can make sure
that a particular header has indeed been parsed to the more specific header type by calling
this method.
|
void |
getBytes(Buffer dst) |
Buffer |
getName()
Subclasses may override this one and are in fact encourage to do so
Get the name of the header
|
Buffer |
getValue()
Get the value of the buffer
|
String |
toString() |
protected void |
transferValue(Buffer dst)
Transfer the bytes of the value into the destination.
|
void |
verify() |
public Buffer getName()
public Buffer getValue()
public void verify()
throws SipParseException
verify in interface SipHeaderSipParseExceptionpublic SipHeader ensure()
ContactHeader but it is still in its "raw" form and therefore represented as a
SipHeader as opposed to an actual ContactHeader but by calling this method
you will force the library to actually fully frame it.protected void transferValue(Buffer dst)
dst - Copyright © 2017. All Rights Reserved.