public static class SipURI.Builder extends URI.Builder<SipURI>
public SipURI.Builder withUser(Buffer user)
user - public SipURI.Builder withUser(String user)
user - public SipURI.Builder withHost(Buffer host) throws SipParseException
SipURI is mandatory sohost - SipParseExceptionpublic SipURI.Builder withHost(String host) throws SipParseException
SipParseExceptionpublic SipURI.Builder withTransport(Transport transport) throws SipParseException
SipParseExceptionpublic SipURI.Builder withTransport(Buffer transport) throws SipParseException
SipParseExceptionpublic SipURI.Builder withTransport(String transport) throws SipParseException
SipParseExceptionpublic SipURI.Builder withParameter(Buffer name, Buffer value) throws SipParseException, IllegalArgumentException
public SipURI.Builder withParameter(String name, String value) throws SipParseException, IllegalArgumentException
public SipURI.Builder withParameter(String name, int value) throws SipParseException, IllegalArgumentException
public SipURI.Builder withParameter(Buffer name, int value) throws SipParseException, IllegalArgumentException
public 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 © 2020. All Rights Reserved.