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, wait
withValue
protected 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
SipParseException
IllegalArgumentException
public AddressParametersHeader.Builder<T> withTag(Buffer value) throws SipParseException, IllegalArgumentException
value
- SipParseException
IllegalArgumentException
public AddressParametersHeader.Builder<T> withTag(String value) throws SipParseException, IllegalArgumentException
value
- SipParseException
IllegalArgumentException
public AddressParametersHeader.Builder<T> withDefaultTag() throws SipParseException, IllegalArgumentException
SipParseException
IllegalArgumentException
public AddressParametersHeader.Builder<T> withParameter(Buffer name, Buffer value) throws SipParseException, IllegalArgumentException
withUriParameter(Buffer, Buffer)
.name
- value
- SipParseException
IllegalArgumentException
public 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
- SipParseException
IllegalArgumentException
public AddressParametersHeader.Builder<T> withUriParameter(String name, String value) throws SipParseException, IllegalArgumentException
SipURI
.name
- value
- SipParseException
IllegalArgumentException
public AddressParametersHeader.Builder<T> withTransport(Buffer transport) throws SipParseException
SipParseException
public AddressParametersHeader.Builder<T> withTransport(String transport) throws SipParseException
SipParseException
public AddressParametersHeader.Builder<T> withTransportTCP() throws SipParseException
SipURI
to be "tcp".SipParseException
public AddressParametersHeader.Builder<T> withTransportUDP() throws SipParseException
SipURI
to be "udp".SipParseException
public AddressParametersHeader.Builder<T> withTransportTLS() throws SipParseException
SipURI
to be "tls".SipParseException
public AddressParametersHeader.Builder<T> withTransportSCTP() throws SipParseException
SipURI
to be "sctp".SipParseException
public AddressParametersHeader.Builder<T> withTransportWS() throws SipParseException
SipURI
to be "ws".SipParseException
public AddressParametersHeader.Builder<T> withTransportWSS() throws SipParseException
SipParseException
public 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 © 2020. All Rights Reserved.