public final class ToHeaderImpl extends AddressParametersHeaderImpl implements ToHeader
ToHeader.Builder
TAG
Constructor and Description |
---|
ToHeaderImpl(Address address,
Buffer parametersBuffer) |
Modifier and Type | Method and Description |
---|---|
ToHeader |
clone() |
ToHeader |
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.
|
Buffer |
getTag()
Get the tag parameter.
|
equals, getAddress, getValue, transferValue
getParameter, getParameter, setParameter, setParameter
getBytes, getName, toString, verify
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
frame, generateTag, with, with
with
getAddress
getParameter, getParameter, setParameter, setParameter
public Buffer getTag() throws SipParseException
getTag
in interface ToHeader
SipParseException
- in case anything goes wrong while extracting tag.public ToHeader clone()
public ToHeader ensure()
SipHeaderImpl
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.ensure
in interface SipHeader
ensure
in class AddressParametersHeaderImpl
Copyright © 2014. All Rights Reserved.