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

java.lang.Object
  上位を拡張 gov.nist.core.GenericObject
      上位を拡張 gov.nist.javax.sip.header.SIPObject
          上位を拡張 gov.nist.javax.sip.header.SIPHeader
              上位を拡張 gov.nist.javax.sip.header.ContentEncoding
すべての実装されたインタフェース:
SIPHeaderNames, java.io.Serializable, java.lang.Cloneable, javax.sip.header.ContentEncodingHeader, javax.sip.header.Encoding, javax.sip.header.Header

public class ContentEncoding
extends SIPHeader
implements javax.sip.header.ContentEncodingHeader

Content encoding part of a content encoding header list.

バージョン:
JAIN-SIP-1.1 $Revision: 1.2 $ $Date: 2004/01/22 13:26:29 $
作成者:
M. Ranganathan
, Olivier Deruelle
関連項目:
 From HTTP RFC 2616
14.11 Content-Encoding

   The Content-Encoding entity-header field is used as a modifier to the
   media-type. When present, its value indicates what additional content
   codings have been applied to the entity-body, and thus what decoding
   mechanisms must be applied in order to obtain the media-type
   referenced by the Content-Type header field. Content-Encoding is
   primarily used to allow a document to be compressed without losing
   the identity of its underlying media type.

       Content-Encoding  = "Content-Encoding" ":" 1#content-coding

   Content codings are defined in section 3.5. An example of its use is

       Content-Encoding: gzip

   The content-coding is a characteristic of the entity identified by
   the Request-URI. Typically, the entity-body is stored with this
   encoding and is only decoded before rendering or analogous usage.
   However, a non-transparent proxy MAY modify the content-coding if the
   new coding is known to be acceptable to the recipient, unless the
   "no-transform" cache-control directive is present in the message.

   If the content-coding of an entity is not "identity", then the
   response MUST include a Content-Encoding entity-header (section
   14.11) that lists the non-identity content-coding(s) used.

   If the content-coding of an entity in a request message is not
   acceptable to the origin server, the server SHOULD respond with a
   status code of 415 (Unsupported Media Type).

   If multiple encodings have been applied to an entity, the content
   codings MUST be listed in the order in which they were applied.
   Additional information about the encoding parameters MAY be provided
   by other entity-header fields not defined by this specification.
, 直列化された形式

フィールドの概要
 
インタフェース javax.sip.header.ContentEncodingHeader から継承されたフィールド
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
 
コンストラクタの概要
ContentEncoding()
          Default constructor.
ContentEncoding(java.lang.String enc)
          Constructor.
 
メソッドの概要
 java.lang.String encodeBody()
          Canonical encoding of body of the header.
 java.lang.String getEncoding()
          Get the ContentEncoding field.
 void setEncoding(java.lang.String encoding)
          Set the ConentEncoding 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
 

コンストラクタの詳細

ContentEncoding

public ContentEncoding()
Default constructor.


ContentEncoding

public ContentEncoding(java.lang.String enc)
Constructor.

パラメータ:
enc - String to set.
メソッドの詳細

encodeBody

public java.lang.String encodeBody()
Canonical encoding of body of the header.

戻り値:
encoded body of the header.

getEncoding

public java.lang.String getEncoding()
Get the ContentEncoding field.

定義:
インタフェース javax.sip.header.Encoding 内の getEncoding
戻り値:
String

setEncoding

public void setEncoding(java.lang.String encoding)
                 throws java.text.ParseException
Set the ConentEncoding field.

定義:
インタフェース javax.sip.header.Encoding 内の setEncoding
パラメータ:
encoding - String to set
例外:
java.text.ParseException