|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.header.SIPObject
gov.nist.javax.sip.header.SIPHeader
gov.nist.javax.sip.header.ParametersHeader
gov.nist.javax.sip.header.Via
public class Via
Via SIPHeader (these are strung together in a ViaList).
ViaList,
Serialized Form| Field Summary | |
|---|---|
static String |
BRANCH
The branch parameter is included by every forking proxy. |
static String |
MADDR
The "maddr" paramter is designating the multicast address. |
static String |
RECEIVED
The "received" parameter is added only for receiver-added Via Fields. |
static String |
RPORT
The RPORT parameter. |
static String |
TTL
The "TTL" parameter is designating the time-to-live value. |
| Fields inherited from interface gov.nist.javax.sip.header.SIPHeaderNames |
|---|
ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALERT_INFO, ALLOW, ALLOW_EVENTS, AUTHENTICATION_INFO, AUTHORIZATION, CALL_ID, CALL_INFO, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, ERROR_INFO, EVENT, EXPIRES, FROM, IN_REPLY_TO, JOIN, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, MIN_SE, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REFERRED_BY, REPLACES, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SESSION_EXPIRES, SIP_ETAG, SIP_IF_MATCH, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE |
| Constructor Summary | |
|---|---|
Via()
Default constructor |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones this object. |
boolean |
equals(Object other)
An introspection based equality predicate for SIPObjects. |
String |
getBranch()
Gets the branch paramater of the ViaHeader. |
String |
getComment()
Deprecated. RFC 2543 support feature. |
Hop |
getHop()
Get the host, port and transport as a Hop. |
String |
getHost()
Returns the host part of this ViaHeader. |
String |
getMAddr()
Returns the value of the maddr parameter, or null if this
is not set. |
int |
getPort()
Returns the port part of this ViaHeader. |
String |
getProtocol()
Returns the value of the protocol used. |
String |
getProtocolVersion()
get the Protocol Version |
String |
getReceived()
Gets the received paramater of the ViaHeader. |
int |
getRPort()
Return the rport parameter. |
gov.nist.core.HostPort |
getSentBy()
Accessor for the sentBy field |
String |
getSentByField()
Returns hostname:port as a string equivalent to the "sent-by" field |
Protocol |
getSentProtocol()
Accessor for the sentProtocol field. |
String |
getSentProtocolField()
Returns transport to the "sent-protocol" field |
String |
getTransport()
Returns the value of the transport parameter. |
int |
getTTL()
Returns the value of the ttl parameter, or -1 if this is not set. |
gov.nist.core.NameValueList |
getViaParms()
Accessor for the parameters field |
boolean |
hasComment()
comment of the Via Header. |
boolean |
hasPort()
port of the Via Header. |
void |
removeComment()
remove the comment field. |
void |
removePort()
remove the port. |
void |
setBranch(String branch)
Sets the branch parameter of the ViaHeader to the newly supplied branch value. |
void |
setComment(String c)
Deprecated. This is an RFC 2543 feature. |
void |
setHost(gov.nist.core.Host host)
set the Host of the Via Header |
void |
setHost(String host)
Set the host part of this ViaHeader to the newly supplied host
parameter. |
void |
setMAddr(String mAddr)
Sets the value of the maddr parameter of this ViaHeader. |
void |
setPort(int port)
Set the port part of this ViaHeader to the newly supplied port
parameter. |
void |
setProtocol(String protocol)
Sets the value of the protocol parameter. |
void |
setProtocolVersion(String protocolVersion)
set the Protocol Version |
void |
setReceived(String received)
Sets the received parameter of ViaHeader. |
void |
setRPort()
Set the RPort flag parameter |
void |
setSentBy(gov.nist.core.HostPort s)
Set the sentBy member |
void |
setSentProtocol(Protocol s)
Set the sentProtocol member |
void |
setTransport(String transport)
Sets the value of the transport. |
void |
setTTL(int ttl)
Sets the value of the ttl parameter. |
| Methods inherited from class gov.nist.javax.sip.header.ParametersHeader |
|---|
getMultiParameter, getMultiParameterNames, getMultiParameters, getMultiParameterValue, getNameValue, getParameter, getParameter, getParameterNames, getParameters, getParameterValue, hasMultiParameter, hasMultiParameters, hasParameter, hasParameters, removeMultiParameter, removeMultiParameters, removeParameter, removeParameters, setMultiParameter, setMultiParameter, setParameter, setParameter, setParameters, setQuotedParameter |
| Methods inherited from class gov.nist.javax.sip.header.SIPHeader |
|---|
encode, encode, getHeaderName, getHeaderValue, getName, getValue, hashCode, isHeaderList, setHeaderName, toString |
| Methods inherited from class gov.nist.javax.sip.header.SIPObject |
|---|
dbgPrint, debugDump, debugDump, match |
| Methods inherited from class gov.nist.core.GenericObject |
|---|
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String BRANCH
public static final String RECEIVED
public static final String MADDR
public static final String TTL
public static final String RPORT
| Constructor Detail |
|---|
public Via()
| Method Detail |
|---|
public boolean equals(Object other)
SIPObject
equals in interface Headerequals in interface ViaHeaderequals in class SIPObjectother - the other object to test against.
public String getProtocolVersion()
public Protocol getSentProtocol()
public gov.nist.core.HostPort getSentBy()
public Hop getHop()
public gov.nist.core.NameValueList getViaParms()
public String getComment()
public boolean hasPort()
public boolean hasComment()
public void removePort()
public void removeComment()
public void setProtocolVersion(String protocolVersion)
protocolVersion - String to setpublic void setHost(gov.nist.core.Host host)
host - String to setpublic void setSentProtocol(Protocol s)
s - Protocol to set.public void setSentBy(gov.nist.core.HostPort s)
s - HostPort to set.public void setComment(String c)
c - String to set.
public void setHost(String host)
throws ParseException
host
parameter.
setHost in interface ViaHeaderhost - - the new value of the host of this ViaHeader
ParseException - which signals that an error has been reached
unexpectedly while parsing the host value.public String getHost()
getHost in interface ViaHeader
public void setPort(int port)
throws InvalidArgumentException
port
parameter.
setPort in interface ViaHeaderport - - the Integer.valueOf value of the port of this ViaHeader
InvalidArgumentException - when the port value is not -1 and <1 or >65535public void setRPort()
setRPort in interface ViaHeaderpublic int getPort()
getPort in interface ViaHeaderpublic int getRPort()
getRPort in interface ViaHeaderpublic String getTransport()
getTransport in interface ViaHeader
public void setTransport(String transport)
throws ParseException
setTransport in interface ViaHeadertransport - - new value for the transport parameter
ParseException - which signals that an error has been reached
unexpectedly while parsing the transport value.public String getProtocol()
getProtocol in interface ViaHeader
public void setProtocol(String protocol)
throws ParseException
setProtocol in interface ViaHeaderprotocol - - new value for the protocol parameter
ParseException - which signals that an error has been reached
unexpectedly while parsing the protocol value.public int getTTL()
getTTL in interface ViaHeaderttl parameter
public void setTTL(int ttl)
throws InvalidArgumentException
setTTL in interface ViaHeaderttl - - new value of the ttl parameter
InvalidArgumentException - if supplied value is less than zero or
greater than 255, excluding -1 the default not set value.public String getMAddr()
maddr parameter, or null if this
is not set.
getMAddr in interface ViaHeader
public void setMAddr(String mAddr)
throws ParseException
maddr parameter of this ViaHeader. The
maddr parameter indicates the server address to be contacted for this
user, overriding any address derived from the host field.
setMAddr in interface ViaHeadermAddr - new value of the maddr parameter
ParseException - which signals that an error has been reached
unexpectedly while parsing the mAddr value.public String getReceived()
getReceived in interface ViaHeader
public void setReceived(String received)
throws ParseException
setReceived in interface ViaHeaderreceived - - the newly supplied received parameter.
ParseException - which signals that an error has been reached
unexpectedly while parsing the received value.public String getBranch()
getBranch in interface ViaHeader
public void setBranch(String branch)
throws ParseException
setBranch in interface ViaHeaderbranch - - the new string branch parmameter of the ViaHeader.
ParseException - which signals that an error has been reached
unexpectedly while parsing the branch value.public Object clone()
gov.nist.core.GenericObject
clone in interface Headerclone in class ParametersHeaderpublic String getSentByField()
ViaHeaderExt
getSentByField in interface ViaHeaderExtpublic String getSentProtocolField()
ViaHeaderExt
getSentProtocolField in interface ViaHeaderExt
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||