gov.nist.javax.sip.header
クラス From

java.lang.Object
  上位を拡張 gov.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.AddressParametersHeader
                      上位を拡張 gov.nist.javax.sip.header.From
すべての実装されたインタフェース:
SIPHeaderNames, java.io.Serializable, java.lang.Cloneable, javax.sip.header.FromHeader, javax.sip.header.Header, javax.sip.header.HeaderAddress, javax.sip.header.Parameters

public final class From
extends AddressParametersHeader
implements javax.sip.header.FromHeader

From SIP Header.

バージョン:
JAIN-SIP-1.1 $Revision: 1.4 $ $Date: 2004/08/23 23:56:20 $
作成者:
M. Ranganathan
This code is in the public domain.
関連項目:
直列化された形式

フィールドの概要
 
インタフェース javax.sip.header.FromHeader から継承されたフィールド
NAME
 
インタフェース 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, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE
 
コンストラクタの概要
From()
          Default constructor
From(To to)
          Generate a FROM header from a TO header
 
メソッドの概要
 java.lang.String encode()
          Encode the header into a String.
 boolean equals(java.lang.Object otherHeader)
          Compare two To headers for equality.
 java.lang.String getDisplayName()
          Get the display name from the address.
 HostPort getHostPort()
          Conveniance accessor function to get the hostPort field from the address.
 java.lang.String getTag()
          Get the tag parameter from the address parm list.
 java.lang.String getUserAtHostPort()
          Get the user@host port string.
 boolean hasTag()
          Boolean function
 void removeTag()
          remove Tag member
 void setAddress(javax.sip.address.Address address)
          Set the address member
 void setTag(java.lang.String t)
          Set the tag member
 java.lang.String toString()
          Gets a string representation of the Header.
 
クラス gov.nist.javax.sip.header.AddressParametersHeader から継承されたメソッド
getAddress
 
クラス gov.nist.javax.sip.header.ParametersHeader から継承されたメソッド
getNameValue, getParameter, getParameterNames, getParameters, getParameterValue, hasParameter, hasParameters, removeParameter, removeParameters, setParameter, setParameter, setParameters, setQuotedParameter
 
クラス gov.nist.javax.sip.header.SIPHeader から継承されたメソッド
getHeaderName, getHeaderValue, getName, getValue, isHeaderList, setHeaderName
 
クラス gov.nist.javax.sip.header.SIPObject から継承されたメソッド
clone, dbgPrint, 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
 
インタフェース javax.sip.header.HeaderAddress から継承されたメソッド
getAddress
 
インタフェース javax.sip.header.Parameters から継承されたメソッド
getParameter, getParameterNames, removeParameter, setParameter
 
インタフェース javax.sip.header.Header から継承されたメソッド
clone, getName
 

コンストラクタの詳細

From

public From()
Default constructor


From

public From(To to)
Generate a FROM header from a TO header

メソッドの詳細

equals

public boolean equals(java.lang.Object otherHeader)
Compare two To headers for equality.

定義:
インタフェース javax.sip.header.Header 内の equals
オーバーライド:
クラス SIPObject 内の equals
パラメータ:
otherHeader - Object to set
戻り値:
true if the two headers are the same.

encode

public java.lang.String encode()
Encode the header into a String.

オーバーライド:
クラス SIPHeader 内の encode
戻り値:
String

getHostPort

public HostPort getHostPort()
Conveniance accessor function to get the hostPort field from the address. Warning -- this assumes that the embedded URI is a SipURL.

戻り値:
hostport field

getDisplayName

public java.lang.String getDisplayName()
Get the display name from the address.

戻り値:
Display name

getTag

public java.lang.String getTag()
Get the tag parameter from the address parm list.

定義:
インタフェース javax.sip.header.FromHeader 内の getTag
戻り値:
tag field

hasTag

public boolean hasTag()
Boolean function

戻り値:
true if the Tag exist

removeTag

public void removeTag()
remove Tag member


setAddress

public void setAddress(javax.sip.address.Address address)
Set the address member

定義:
インタフェース javax.sip.header.HeaderAddress 内の setAddress
オーバーライド:
クラス AddressParametersHeader 内の setAddress
パラメータ:
address - Address to set

setTag

public void setTag(java.lang.String t)
            throws java.text.ParseException
Set the tag member

定義:
インタフェース javax.sip.header.FromHeader 内の setTag
パラメータ:
t - tag to set. From tags are mandatory.
例外:
java.text.ParseException

getUserAtHostPort

public java.lang.String getUserAtHostPort()
Get the user@host port string.


toString

public java.lang.String toString()
Gets a string representation of the Header. This method overrides the toString method in java.lang.Object.

定義:
インタフェース javax.sip.header.Header 内の toString
オーバーライド:
クラス SIPObject 内の toString
戻り値:
string representation of Header