|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.address.NetObject
gov.nist.javax.sip.address.GenericURI
gov.nist.javax.sip.address.SipUri
public class SipUri
The SipUri structure.
| フィールドの概要 |
|---|
| クラス gov.nist.javax.sip.address.GenericURI から継承されたフィールド |
|---|
ISUB, PHONE_CONTEXT_TAG, POSTDIAL, PROVIDER_TAG, SIP, SIPS, TEL |
| コンストラクタの概要 | |
|---|---|
SipUri()
|
|
| メソッドの概要 | |
|---|---|
void |
clearPassword()
Clear the password from the user part if it exists. |
void |
clearQheaders()
Clear all Qheaders. |
void |
clearUriParms()
clear all URI Parameters. |
java.lang.Object |
clone()
clone this. |
java.lang.String |
encode()
Construct a URL from the parsed structure. |
boolean |
equals(java.lang.Object that)
Compare two URIs and return true if they are equal. |
Authority |
getAuthority()
Get the authority. |
java.lang.String |
getHeader(java.lang.String name)
Returns the value of the named header, or null if it is not set. |
java.util.Iterator |
getHeaderNames()
Returns an Iterator over the names (Strings) of all headers present in this SipURI. |
java.lang.String |
getHost()
Get the host protion of the URI. |
HostPort |
getHostPort()
Get the host and port of the server. |
java.lang.String |
getLrParam()
Returns the value of the lr parameter, or null if this
is not set. |
java.lang.String |
getMAddrParam()
Returns the value of the maddr parameter, or null if this
is not set. |
java.lang.String |
getMethod()
Get the method parameter. |
java.lang.String |
getMethodParam()
Returns the value of the method parameter, or null if this
is not set. |
java.lang.String |
getParameter(java.lang.String name)
Returns the value of the named parameter, or null if it is not set. |
java.util.Iterator |
getParameterNames()
Returns an Iterator over the names (Strings) of all parameters present in this ParametersHeader. |
java.lang.Object |
getParm(java.lang.String parmname)
get the parameter (do a name lookup) and return null if none exists. |
int |
getPort()
Get the port from the authority field. |
NameValueList |
getQheaders()
Accessor forSIPObjects |
java.lang.String |
getScheme()
Get the scheme. |
TelephoneNumber |
getTelephoneSubscriber()
Returns the stucture corresponding to the telephone number provided that the user is a telephone subscriber. |
java.lang.String |
getTransportParam()
Returns the value of the "transport" parameter, or null if this is not set. |
int |
getTTLParam()
Returns the value of the "ttl" parameter, or -1 if this is not set. |
NameValueList |
getUriParms()
Accessor for URI parameters |
java.lang.String |
getUser()
Returns the value of the userParam,
or null if this is not set. |
java.lang.String |
getUserAtHost()
getUser@host |
java.lang.String |
getUserAtHostPort()
getUser@host |
java.lang.String |
getUserParam()
Returns the user part of this SipURI, or null if it is not set. |
java.lang.String |
getUserPassword()
Get the password of the user. |
java.lang.String |
getUserType()
Get the urse parameter. |
boolean |
hasLrParam()
Returns whether the the lr parameter is set. |
boolean |
hasParameter(java.lang.String name)
Boolean to check if a parameter of a given name exists. |
boolean |
hasTransport()
Return true if the transport parameter is defined. |
boolean |
isSecure()
Returns true if this SipURI is secure i.e. if this SipURI represents a sips URI. |
boolean |
isSipURI()
This method determines if this is a URI with a scheme of "sip" or "sips". |
boolean |
isUserTelephoneSubscriber()
returns true if the user is a telephone subscriber. |
void |
removeHeader(java.lang.String name)
Remove a header given its name (provided it exists). |
void |
removeHeaders()
Remove all headers. |
void |
removeMAddr()
Remove the maddr param if it exists. |
void |
removeMethod()
remove the Method. |
void |
removeParameter(java.lang.String name)
Remove a parameter given its name |
void |
removePort()
remove the port setting. |
void |
removeTransport()
Delete the transport string. |
void |
removeTTL()
remove the ttl value from the parameter list if it exists. |
void |
removeUriParms()
Remove the URI parameters. |
void |
removeUser()
Remove the user. |
void |
removeUserType()
Set the user type. |
void |
setAuthority(Authority authority)
Set the authority member |
void |
setDefaultParm(java.lang.String name,
java.lang.Object value)
Set the default parameters for this URI. |
void |
setHeader(java.lang.String name,
java.lang.String value)
Sets the value of the specified header fields to be included in a request constructed from the URI. |
void |
setHost(Host h)
Set the host for this URI. |
void |
setHost(java.lang.String host)
Returns the host part of this SipURI. |
void |
setHostPort(HostPort hostPort)
Set the hostPort field of the imbedded authority field. |
void |
setIsdnSubAddress(java.lang.String isdnSubAddress)
Sets ISDN subaddress of SipURL |
void |
setLrParam()
Sets the value of the lr parameter of this SipURI. |
void |
setMAddr(java.lang.String mAddr)
Set the MADDR parameter . |
void |
setMAddrParam(java.lang.String maddr)
Sets the value of the maddr parameter of this SipURI. |
void |
setMethod(java.lang.String method)
Set the Method |
void |
setMethodParam(java.lang.String method)
Sets the value of the method parameter. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets the value of the specified parameter. |
void |
setPort(int p)
set the port to a given value. |
void |
setQHeader(NameValue nameValue)
Set the query header when provided as a name-value pair. |
void |
setQheaders(NameValueList parms)
Set the qheaders member |
void |
setScheme(java.lang.String scheme)
Constructor given the scheme. |
void |
setSecure(boolean secure)
Sets the scheme of this URI to sip or sips depending on whether the argument is true or false. |
void |
setTelephoneSubscriber(TelephoneNumber tel)
Set the telephone subscriber field. |
void |
setTransportParam(java.lang.String transport)
Sets the value of the "transport" parameter. |
void |
setTTLParam(int ttl)
Sets the value of the ttl parameter. |
void |
setUriParameter(NameValue nameValue)
Set the parameter as given. |
void |
setUriParm(java.lang.String name,
java.lang.Object value)
Set a given URI parameter. |
void |
setUriParms(NameValueList parms)
Set the uriParms member |
void |
setUser(java.lang.String uname)
Sets the user of SipURI. |
void |
setUserParam(java.lang.String usertype)
Sets the value of the user parameter. |
void |
setUserPassword(java.lang.String password)
Set the user password. |
java.lang.String |
toString()
Return a string representation. |
| クラス gov.nist.javax.sip.address.NetObject から継承されたメソッド |
|---|
debugDump, debugDump, match, merge, replace, replace, replace, replace |
| クラス gov.nist.core.GenericObject から継承されたメソッド |
|---|
getClassFromName, getMatcher, isMySubclass, setMatcher |
| クラス java.lang.Object から継承されたメソッド |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public SipUri()
| メソッドの詳細 |
|---|
public void setScheme(java.lang.String scheme)
public java.lang.String getScheme()
javax.sip.address.URI 内の getSchemeGenericURI 内の getSchemepublic void clearUriParms()
public void clearPassword()
public Authority getAuthority()
public void clearQheaders()
public boolean equals(java.lang.Object that)
NetObject 内の equalsthat - the object to compare to.
public java.lang.String encode()
GenericURI 内の encodepublic java.lang.String toString()
javax.sip.address.SipURI 内の toStringjavax.sip.address.URI 内の toStringGenericURI 内の toStringpublic java.lang.String getUserAtHost()
public java.lang.String getUserAtHostPort()
public java.lang.Object getParm(java.lang.String parmname)
parmname - Name of the parameter to get.
public java.lang.String getMethod()
public NameValueList getUriParms()
public void removeUriParms()
public NameValueList getQheaders()
public java.lang.String getUserType()
public java.lang.String getUserPassword()
javax.sip.address.SipURI 内の getUserPasswordpublic void setUserPassword(java.lang.String password)
javax.sip.address.SipURI 内の setUserPasswordpassword - - password to set.public TelephoneNumber getTelephoneSubscriber()
public HostPort getHostPort()
public int getPort()
javax.sip.address.SipURI 内の getPortpublic java.lang.String getHost()
javax.sip.address.SipURI 内の getHostpublic boolean isUserTelephoneSubscriber()
public void removeTTL()
public void removeMAddr()
public void removeTransport()
public void removeHeader(java.lang.String name)
name - name of the header to remove.public void removeHeaders()
public void removeUserType()
public void removePort()
javax.sip.address.SipURI 内の removePortpublic void removeMethod()
public void setUser(java.lang.String uname)
javax.sip.address.SipURI 内の setUseruname - The new String value of the user.
java.text.ParseException - which signals that an error has been reached
unexpectedly while parsing the user value.public void removeUser()
public void setDefaultParm(java.lang.String name,
java.lang.Object value)
name - Name of the parameter to set.value - value of the parameter to set.public void setAuthority(Authority authority)
authority - Authority to set.public void setHost(Host h)
h - host to set.public void setUriParms(NameValueList parms)
parms - URI parameters to set.
public void setUriParm(java.lang.String name,
java.lang.Object value)
name - Name of the parameter to set.value - value of the parameter to set.public void setQheaders(NameValueList parms)
parms - query headers to set.public void setMAddr(java.lang.String mAddr)
mAddr - Host Name to setpublic void setUserParam(java.lang.String usertype)
javax.sip.address.SipURI 内の setUserParamusertype - New value String value of the method parameterpublic void setMethod(java.lang.String method)
method - method parameterpublic void setIsdnSubAddress(java.lang.String isdnSubAddress)
isdnSubAddress - ISDN subaddresspublic void setTelephoneSubscriber(TelephoneNumber tel)
tel - Telephone subscriber field to set.public void setPort(int p)
javax.sip.address.SipURI 内の setPortp - Port to set.public boolean hasParameter(java.lang.String name)
name - Name of the parameter to check on.
public void setQHeader(NameValue nameValue)
nameValue - qeuery header provided as a name,value pair.public void setUriParameter(NameValue nameValue)
nameValue - - parameter to set.public boolean hasTransport()
public void removeParameter(java.lang.String name)
javax.sip.header.Parameters 内の removeParametername - -- name of the parameter to remove.public void setHostPort(HostPort hostPort)
hostPort - is the hostPort to set.public java.lang.Object clone()
javax.sip.address.URI 内の cloneGenericURI 内の clonepublic java.lang.String getHeader(java.lang.String name)
javax.sip.address.SipURI 内の getHeadername - name of header to retrieve
public java.util.Iterator getHeaderNames()
javax.sip.address.SipURI 内の getHeaderNamespublic java.lang.String getLrParam()
lr parameter, or null if this
is not set. This is equivalent to getParameter("lr").
lr parameterpublic java.lang.String getMAddrParam()
maddr parameter, or null if this
is not set. This is equivalent to getParameter("maddr").
javax.sip.address.SipURI 内の getMAddrParammaddr parameterpublic java.lang.String getMethodParam()
method parameter, or null if this
is not set. This is equivalent to getParameter("method").
javax.sip.address.SipURI 内の getMethodParammethod parameterpublic java.lang.String getParameter(java.lang.String name)
javax.sip.header.Parameters 内の getParametername - name of parameter to retrieve
public java.util.Iterator getParameterNames()
javax.sip.header.Parameters 内の getParameterNamespublic int getTTLParam()
javax.sip.address.SipURI 内の getTTLParamttl parameterpublic java.lang.String getTransportParam()
javax.sip.address.SipURI 内の getTransportParampublic java.lang.String getUser()
userParam,
or null if this is not set.
This is equivalent to getParameter("user").
javax.sip.address.SipURI 内の getUseruserParam of the SipURIpublic boolean isSecure()
javax.sip.address.SipURI 内の isSecuretrue if this SipURI represents a sips URI, and
false if it represents a sip URI.public boolean isSipURI()
javax.sip.address.URI 内の isSipURIGenericURI 内の isSipURI
public void setHeader(java.lang.String name,
java.lang.String value)
javax.sip.address.SipURI 内の setHeadername - - a String specifying the header namevalue - - a String specifying the header value
public void setHost(java.lang.String host)
throws java.text.ParseException
javax.sip.address.SipURI 内の setHostjava.text.ParseExceptionpublic void setLrParam()
lr parameter of this SipURI. The lr
parameter, when present, indicates that the element responsible for
this resource implements the routing mechanisms specified in RFC 3261.
This parameter will be used in the URIs proxies place in the
Record-Route header field values, and may appear in the URIs in a
pre-existing route set.
javax.sip.address.SipURI 内の setLrParam
public void setMAddrParam(java.lang.String maddr)
throws java.text.ParseException
maddr parameter of this SipURI. The
maddr parameter indicates the server address to be contacted for this
user, overriding any address derived from the host field. This is
equivalent to setParameter("maddr", maddr).
javax.sip.address.SipURI 内の setMAddrParammaddr - New value of the maddr parameter
java.text.ParseException
public void setMethodParam(java.lang.String method)
throws java.text.ParseException
method parameter. This specifies
which SIP method to use in requests directed at this URI. This is
equivalent to setParameter("method", method).
javax.sip.address.SipURI 内の setMethodParammethod - - new value String value of the method parameter
java.text.ParseException
public void setParameter(java.lang.String name,
java.lang.String value)
throws java.text.ParseException
javax.sip.header.Parameters 内の setParametername - - a String specifying the parameter namevalue - - a String specifying the parameter value
java.text.ParseException - which signals that an error has been reached
unexpectedly while parsing the parameter name or value.public void setSecure(boolean secure)
javax.sip.address.SipURI 内の setSecuresecure - - the boolean value indicating if the SipURI is secure.public void setTTLParam(int ttl)
ttl parameter. The ttl parameter
specifies the time-to-live value when packets are sent using UDP
multicast. This is equivalent to setParameter("ttl", ttl).
javax.sip.address.SipURI 内の setTTLParamttl - - new value of the ttl parameter
public void setTransportParam(java.lang.String transport)
throws java.text.ParseException
ListeningPoint.
javax.sip.address.SipURI 内の setTransportParamtransport - - new value for the "transport" parameter
java.text.ParseExceptionListeningPointpublic java.lang.String getUserParam()
javax.sip.address.SipURI 内の getUserParampublic boolean hasLrParam()
lr parameter is set. This is
equivalent to hasParameter("lr"). This interface has no getLrParam as
RFC3261 does not specify any values for the "lr" paramater.
javax.sip.address.SipURI 内の hasLrParam
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||