public final class ToHeaderImpl extends AddressParametersHeader implements ToHeader
TAG
Constructor and Description |
---|
ToHeaderImpl(Address address,
Buffer parametersBuffer) |
Modifier and Type | Method and Description |
---|---|
ToHeader |
clone() |
static ToHeader |
frame(Buffer buffer)
Frame the value as a
ToHeader . |
Buffer |
getTag()
Get the tag parameter.
|
frameAddressParameters, getAddress, getValue, transferValue
getParameter, getParameter, setParameter
getBytes, getName, toString, verify
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAddress
getParameter, getParameter, setParameter
public Buffer getTag() throws SipParseException
getTag
in interface ToHeader
SipParseException
- in case anything goes wrong while extracting tag.public 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.value
- SipParseException
- in case anything goes wrong while parsing.Copyright © 2013. All Rights Reserved.