|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.header.SIPObject
gov.nist.javax.sip.header.SIPHeader
gov.nist.javax.sip.header.ContentLanguage
public class ContentLanguage
ContentLanguage header
Fielding, et al. Standards Track [Page 118]
RFC 2616 HTTP/1.1 June 1999
14.12 Content-Language
The Content-Language entity-header field describes the natural
language(s) of the intended audience for the enclosed entity. Note
that this might not be equivalent to all the languages used within
the entity-body.
Content-Language = "Content-Language" ":" 1#language-tag
Language tags are defined in section 3.10. The primary purpose of
Content-Language is to allow a user to identify and differentiate
entities according to the user's own preferred language. Thus, if the
body content is intended only for a Danish-literate audience, the
appropriate field is
Content-Language: da
If no Content-Language is specified, the default is that the content
is intended for all language audiences. This might mean that the
sender does not consider it to be specific to any natural language,
or that the sender does not know for which language it is intended.
Multiple languages MAY be listed for content that is intended for
multiple audiences. For example, a rendition of the "Treaty of
Waitangi," presented simultaneously in the original Maori and English
versions, would call for
Content-Language: mi, en
However, just because multiple languages are present within an entity
does not mean that it is intended for multiple linguistic audiences.
An example would be a beginner's language primer, such as "A First
Lesson in Latin," which is clearly intended to be used by an
English-literate audience. In this case, the Content-Language would
properly only include "en".
Content-Language MAY be applied to any media type -- it is not
limited to textual documents.
| フィールドの概要 |
|---|
| インタフェース javax.sip.header.ContentLanguageHeader から継承されたフィールド |
|---|
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 |
| コンストラクタの概要 | |
|---|---|
ContentLanguage()
|
|
ContentLanguage(java.lang.String languageTag)
Default constructor. |
|
| メソッドの概要 | |
|---|---|
java.lang.String |
encodeBody()
Canonical encoding of the value of the header. |
java.util.Locale |
getContentLanguage()
Gets the language value of the ContentLanguageHeader. |
java.lang.String |
getLanguageTag()
get the languageTag field. |
void |
setContentLanguage(java.util.Locale language)
Sets the language parameter of this ContentLanguageHeader. |
void |
setLanguageTag(java.lang.String languageTag)
set the languageTag field |
| クラス gov.nist.javax.sip.header.SIPHeader から継承されたメソッド |
|---|
encode, getHeaderName, getHeaderValue, getName, getValue, isHeaderList, setHeaderName |
| クラス gov.nist.javax.sip.header.SIPObject から継承されたメソッド |
|---|
clone, dbgPrint, debugDump, debugDump, equals, match, merge, replace, replace, replace, replace, toString |
| クラス gov.nist.core.GenericObject から継承されたメソッド |
|---|
getClassFromName, getMatcher, isMySubclass, setMatcher |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| インタフェース javax.sip.header.Header から継承されたメソッド |
|---|
clone, equals, getName, toString |
| コンストラクタの詳細 |
|---|
public ContentLanguage()
public ContentLanguage(java.lang.String languageTag)
languageTag - String to set| メソッドの詳細 |
|---|
public java.lang.String encodeBody()
public java.lang.String getLanguageTag()
public void setLanguageTag(java.lang.String languageTag)
languageTag - -- language tag to set.public java.util.Locale getContentLanguage()
javax.sip.header.ContentLanguageHeader 内の getContentLanguagepublic void setContentLanguage(java.util.Locale language)
javax.sip.header.ContentLanguageHeader 内の setContentLanguagelanguage - - the new Locale value of the language of
ContentLanguageHeader
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||