public static class SipURI.Builder extends URI.Builder<SipURI>
| Modifier and Type | Method and Description |
|---|---|
SipURI |
build()
Construct a
SipURI. |
boolean |
hasParameters() |
SipURI.Builder |
secure()
Mark this
SipURI as a secure sip address, i.e. |
SipURI.Builder |
useSCTP()
Use SCTP as the transport.
|
SipURI.Builder |
useTCP()
Use TCP as the transport.
|
SipURI.Builder |
useTLS()
Use TLS as the transport.
|
SipURI.Builder |
useUDP()
Use UDP as the transport.
|
SipURI.Builder |
useWS()
Use WebSocket as the transport.
|
SipURI.Builder |
useWSS() |
SipURI.Builder |
withHost(Buffer host)
Specify the host.
|
SipURI.Builder |
withHost(java.lang.String host) |
SipURI.Builder |
withNoParameters()
Wipe out all parameters.
|
SipURI.Builder |
withNoPort()
Convenience method for removing the port from this SIP URI.
|
SipURI.Builder |
withParameter(Buffer name,
Buffer value) |
SipURI.Builder |
withParameter(Buffer name,
int value) |
SipURI.Builder |
withParameter(java.lang.String name,
int value) |
SipURI.Builder |
withParameter(java.lang.String name,
java.lang.String value) |
SipURI.Builder |
withPort(Buffer port)
Specify the port as a buffer.
|
SipURI.Builder |
withPort(int port)
Set the port.
|
SipURI.Builder |
withSecure(boolean secure)
Mark this
SipURI as a secure sip address, i.e. |
SipURI.Builder |
withTransport(Buffer transport) |
SipURI.Builder |
withTransport(java.lang.String transport) |
SipURI.Builder |
withTransport(Transport transport) |
SipURI.Builder |
withUser(Buffer user) |
SipURI.Builder |
withUser(java.lang.String user) |
public SipURI.Builder withUser(Buffer user)
user - public SipURI.Builder withUser(java.lang.String user)
user - public SipURI.Builder withHost(Buffer host) throws SipParseException
SipURI is mandatory sohost - SipParseExceptionpublic SipURI.Builder withHost(java.lang.String host) throws SipParseException
SipParseExceptionpublic SipURI.Builder withTransport(Transport transport) throws SipParseException
SipParseExceptionpublic SipURI.Builder withTransport(Buffer transport) throws SipParseException
SipParseExceptionpublic SipURI.Builder withTransport(java.lang.String transport) throws SipParseException
SipParseExceptionpublic SipURI.Builder withParameter(Buffer name, Buffer value) throws SipParseException, java.lang.IllegalArgumentException
SipParseExceptionjava.lang.IllegalArgumentExceptionpublic SipURI.Builder withParameter(java.lang.String name, java.lang.String value) throws SipParseException, java.lang.IllegalArgumentException
SipParseExceptionjava.lang.IllegalArgumentExceptionpublic SipURI.Builder withParameter(java.lang.String name, int value) throws SipParseException, java.lang.IllegalArgumentException
SipParseExceptionjava.lang.IllegalArgumentExceptionpublic SipURI.Builder withParameter(Buffer name, int value) throws SipParseException, java.lang.IllegalArgumentException
SipParseExceptionjava.lang.IllegalArgumentExceptionpublic SipURI.Builder withNoParameters()
public SipURI.Builder secure()
SipURI as a secure sip address, i.e. "sips". Same as calling
#secure(true)public SipURI.Builder withSecure(boolean secure)
SipURI as a secure sip address, i.e. "sips" or as a non-secure, i.e.
"sip"public SipURI.Builder withPort(int port) throws SipParseException
port - SipParseExceptionpublic SipURI.Builder withPort(Buffer port) throws SipParseException
port - if null the port will be reset.SipParseException - in case the port ispublic SipURI.Builder withNoPort() throws SipParseException
io.pkts.packet.sip.address.SipURI.Builder#withPort(null)SipParseExceptionpublic SipURI.Builder useUDP()
public SipURI.Builder useTCP()
public SipURI.Builder useTLS()
public SipURI.Builder useSCTP()
public SipURI.Builder useWS()
public SipURI.Builder useWSS()
public boolean hasParameters()
public SipURI build() throws SipParseException
SipURI.SipParseException - in case mandatory parameters, such as #host(Buffer) is
missing or if other aspects of constructing the SipURI fails.Copyright © 2018. All Rights Reserved.