public static class ViaHeader.Builder extends Object implements SipHeader.Builder<ViaHeader>
| Constructor and Description |
|---|
Builder() |
Builder(Buffer buffer) |
Builder(Buffer transport,
Buffer host,
int port,
List<Buffer[]> params,
int indexOfBranch,
int indexOfReceived,
int indexOfRPort) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithValuepublic Builder()
public Builder(Buffer transport, Buffer host, int port, List<Buffer[]> params, int indexOfBranch, int indexOfReceived, int indexOfRPort)
public Builder(Buffer buffer) throws IOException
IOExceptionpublic ViaHeader.Builder withParameter(Buffer name, Buffer value) throws SipParseException, IllegalArgumentException
public ViaHeader.Builder withParameter(String name, String value) throws SipParseException, IllegalArgumentException
public ViaHeader.Builder withPort(int port)
public ViaHeader.Builder withHost(Buffer host)
public ViaHeader.Builder withHost(String host)
public ViaHeader.Builder withBranch()
ViaHeader.generateBranch() and pass that into
withBranch(Buffer)public ViaHeader.Builder withBranch(Buffer branch)
public ViaHeader.Builder withBranch(String branch)
public ViaHeader.Builder withRPortFlag()
public boolean hasRPort()
public ViaHeader.Builder withRPort(int rport)
public ViaHeader.Builder withReceived(String received)
public ViaHeader.Builder withReceived(Buffer received)
public ViaHeader.Builder withTransportUDP()
public ViaHeader.Builder withTransportSCTP()
public ViaHeader.Builder withTransportTCP()
public ViaHeader.Builder withTransportTLS()
public ViaHeader.Builder withTransportWS()
public ViaHeader.Builder withTransportWSS()
public ViaHeader.Builder withTransport(Buffer transport) throws SipParseException
#transportUDP() methods
rather than this.transport - SipParseException - in case the transport is not any of UDP, TCP, TLS, SCTP or WS.public ViaHeader.Builder withTransport(String transport) throws SipParseException
SipParseExceptionpublic SipHeader.Builder<ViaHeader> withValue(Buffer value)
withValue in interface SipHeader.Builder<ViaHeader>public ViaHeader build() throws SipParseException
build in interface SipHeader.Builder<ViaHeader>SipParseExceptionCopyright © 2016. All Rights Reserved.