public interface ToHeader extends AddressParametersHeader
Modifier and Type | Interface and Description |
---|---|
static class |
ToHeader.Builder |
Modifier and Type | Method and Description |
---|---|
ToHeader |
clone() |
static ToHeader |
frame(Buffer buffer)
Frame the value as a
ToHeader . |
static Buffer |
generateTag()
Generate a new tag that can be used as a tag parameter for the
ToHeader . |
Buffer |
getTag()
Get the tag parameter.
|
static ToHeader.Builder |
with() |
static ToHeader.Builder |
with(Address address) |
with
getAddress
getParameter, getParameter, setParameter, setParameter
static final Buffer NAME
Buffer getTag() throws SipParseException
SipParseException
- in case anything goes wrong while extracting tag.static ToHeader frame(Buffer buffer) throws SipParseException
ToHeader
. This method assumes that you have already parsed out
the actual header name "To: ". Also, this method assumes that a message framer (or similar)
has framed the buffer that is being passed in to us to only contain this header and nothing
else.
Note, as with all the frame-methods on all headers/messages/whatever, they do not do any
validation that the information is actually correct. This method will simply only try and
validate just enough to get the framing done.frame
in interface AddressParametersHeader
frame
in interface SipHeader
value
- SipParseException
- in case anything goes wrong while parsing.static Buffer generateTag()
ToHeader
. A
tag-parameter only has to be unique within the same Call-ID space so therefore it doesn't
have to be cryptographically strong etc.static ToHeader.Builder with()
static ToHeader.Builder with(Address address) throws SipParseException
SipParseException
Copyright © 2014. All Rights Reserved.