| Modifier and Type | Method and Description |
|---|---|
Address |
build() |
Address.Builder |
withDisplayName(Buffer displayName) |
Address.Builder |
withDisplayName(String displayName) |
Address.Builder |
withHost(Buffer host)
Use this host for the URI with this
Address. |
Address.Builder |
withHost(String host) |
Address.Builder |
withNoParameters()
Wipe out all parameters on the URI within the
Address object. |
Address.Builder |
withPort(int port)
|
Address.Builder |
withTransport(Buffer transport) |
Address.Builder |
withTransport(String transport) |
Address.Builder |
withTransportSCTP()
Set SCTP as the transport on the wrapped SIP URI (assuming this is a SIP URI that this
Address object is indeed wrapping). |
Address.Builder |
withTransportTCP()
Set TCP as the transport on the wrapped SIP URI (assuming this is a SIP URI that this
Address object is indeed wrapping). |
Address.Builder |
withTransportTLS()
Set TLS as the transport on the wrapped SIP URI (assuming this is a SIP URI that this
Address object is indeed wrapping). |
Address.Builder |
withTransportUDP()
Set UDP as the transport on the wrapped SIP URI (assuming this is a SIP URI that this
Address object is indeed wrapping). |
Address.Builder |
withTransportWS()
Set WS as the transport on the wrapped SIP URI (assuming this is a SIP URI that this
Address object is indeed wrapping). |
Address.Builder |
withTransportWSS()
Set WSS as the transport on the wrapped SIP URI (assuming this is a SIP URI that this
Address object is indeed wrapping). |
Address.Builder |
withURI(URI uri) |
Address.Builder |
withURIParameter(Buffer name,
Buffer value)
Set a parameter on the URI within the
Address object. |
Address.Builder |
withURIParameter(Buffer name,
int value)
Set a parameter on the URI within the
Address object. |
Address.Builder |
withURIParameter(String name,
int value)
Set a parameter on the URI within the
Address object. |
Address.Builder |
withURIParameter(String name,
String value)
Set a parameter on the URI within the
Address object. |
Address.Builder |
withUser(Buffer user)
|
Address.Builder |
withUser(String user) |
public Address.Builder withUser(Buffer user)
SipURI that will be part of this Address. See
withHost(Buffer) for more information.user - public Address.Builder withUser(String user)
public Address.Builder withPort(int port)
SipURI that will be part of this Address. See
withHost(Buffer) for more information.port - public Address.Builder withURIParameter(Buffer name, Buffer value) throws SipParseException, IllegalArgumentException
Address object.name - value - SipParseExceptionIllegalArgumentExceptionpublic Address.Builder withURIParameter(String name, String value) throws SipParseException, IllegalArgumentException
Address object.name - value - SipParseExceptionIllegalArgumentExceptionpublic Address.Builder withURIParameter(String name, int value) throws SipParseException, IllegalArgumentException
Address object.name - value - SipParseExceptionIllegalArgumentExceptionpublic Address.Builder withURIParameter(Buffer name, int value) throws SipParseException, IllegalArgumentException
Address object.name - value - SipParseExceptionIllegalArgumentExceptionpublic Address.Builder withNoParameters()
Address object.
Useful if you e.g. create a copy of a SipURI but you want to remove any potential parameters that may be on the SIP URI.public Address.Builder withTransportUDP()
Address object is indeed wrapping).public Address.Builder withTransportTCP()
Address object is indeed wrapping).public Address.Builder withTransportTLS()
Address object is indeed wrapping).public Address.Builder withTransportSCTP()
Address object is indeed wrapping).public Address.Builder withTransport(Buffer transport) throws SipParseException
SipParseExceptionpublic Address.Builder withTransport(String transport) throws SipParseException
SipParseExceptionpublic Address.Builder withTransportWS()
Address object is indeed wrapping).public Address.Builder withTransportWSS()
Address object is indeed wrapping).public Address.Builder withHost(Buffer host)
Address. This is a convenient way of creating
an Address with a SipURI and is the same as:
SipURI uri = SipURI.with().host(host).build(); Address.with(uri);NOTE: you cannot specify a host and also specify a URI since those would conflict and an exception will occur at the time you try and
build() the address.host - public Address.Builder withHost(String host)
public Address.Builder withDisplayName(Buffer displayName)
public Address.Builder withDisplayName(String displayName)
public Address.Builder withURI(URI uri)
public Address build() throws SipParseException
SipParseExceptionCopyright © 2016. All Rights Reserved.