public static class AddressParametersHeader.Builder<T extends AddressParametersHeader> extends Object implements SipHeader.Builder<T>
| Modifier | Constructor and Description |
|---|---|
protected |
Builder(Buffer name) |
protected |
Builder(Buffer name,
ParametersSupport params) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithValueprotected Builder(Buffer name)
protected Builder(Buffer name, ParametersSupport params)
public final AddressParametersHeader.Builder<T> withValue(Buffer buffer)
withValue in interface SipHeader.Builder<T extends AddressParametersHeader>public final AddressParametersHeader.Builder<T> withPort(int port)
public final AddressParametersHeader.Builder<T> withUser(Buffer user)
ToHeader. Since the user portion may in fact be null
(or empty), any value is accepted but of course, a value of null or empty will lead to no
user portion of the SIP-URI within the header.user - public final AddressParametersHeader.Builder<T> withUser(String user)
public final AddressParametersHeader.Builder<T> withDisplayName(String displayName)
public final AddressParametersHeader.Builder<T> withDisplayName(Buffer displayName)
public final AddressParametersHeader.Builder<T> withHost(Buffer host)
build() the header.host - public final AddressParametersHeader.Builder<T> withHost(String host)
public AddressParametersHeader.Builder<T> withNoTag() throws SipParseException, IllegalArgumentException
SipParseExceptionIllegalArgumentExceptionpublic AddressParametersHeader.Builder<T> withTag(Buffer value) throws SipParseException, IllegalArgumentException
value - SipParseExceptionIllegalArgumentExceptionpublic AddressParametersHeader.Builder<T> withTag(String value) throws SipParseException, IllegalArgumentException
value - SipParseExceptionIllegalArgumentExceptionpublic AddressParametersHeader.Builder<T> withDefaultTag() throws SipParseException, IllegalArgumentException
SipParseExceptionIllegalArgumentExceptionpublic AddressParametersHeader.Builder<T> withParameter(Buffer name, Buffer value) throws SipParseException, IllegalArgumentException
withUriParameter(Buffer, Buffer).name - value - SipParseExceptionIllegalArgumentExceptionpublic AddressParametersHeader.Builder<T> withParameter(String name, String value) throws SipParseException, IllegalArgumentException
public AddressParametersHeader.Builder<T> withParameters(Buffer params)
params - public AddressParametersHeader.Builder<T> withNoParameters()
public AddressParametersHeader.Builder<T> withUriParameter(Buffer name, Buffer value) throws SipParseException, IllegalArgumentException
SipURI.name - value - SipParseExceptionIllegalArgumentExceptionpublic AddressParametersHeader.Builder<T> withUriParameter(String name, String value) throws SipParseException, IllegalArgumentException
SipURI.name - value - SipParseExceptionIllegalArgumentExceptionpublic AddressParametersHeader.Builder<T> withTransport(Buffer transport) throws SipParseException
SipParseExceptionpublic AddressParametersHeader.Builder<T> withTransport(String transport) throws SipParseException
SipParseExceptionpublic AddressParametersHeader.Builder<T> withTransportTCP() throws SipParseException
SipURI to be "tcp".SipParseExceptionpublic AddressParametersHeader.Builder<T> withTransportUDP() throws SipParseException
SipURI to be "udp".SipParseExceptionpublic AddressParametersHeader.Builder<T> withTransportTLS() throws SipParseException
SipURI to be "tls".SipParseExceptionpublic AddressParametersHeader.Builder<T> withTransportSCTP() throws SipParseException
SipURI to be "sctp".SipParseExceptionpublic AddressParametersHeader.Builder<T> withTransportWS() throws SipParseException
SipURI to be "ws".SipParseExceptionpublic AddressParametersHeader.Builder<T> withTransportWSS() throws SipParseException
SipParseExceptionpublic final AddressParametersHeader.Builder<T> withAddress(Address address) throws SipParseException
address - SipParseException - in case an address already has been specified either by
a previous call to this method or by specifying parts of an address through e.g.
withHost etc.public final T build() throws SipParseException
build in interface SipHeader.Builder<T extends AddressParametersHeader>SipParseException - in case anything goes wrong while constructing the
ToHeader.Copyright © 2016. All Rights Reserved.