EAF 7.4 Implementation

com.lutris.mime
Class ContentHeader

java.lang.Object
  extended by com.lutris.mime.MimeHeader
      extended by com.lutris.mime.ContentHeader

public class ContentHeader
extends MimeHeader

Parses and represents Mime header fields that have the form of the Content-Type header as defined in RFC2045 Section 5.1 Page 11. The format of these headers is informally:

 
 : [ ; ... ]
 
 
Examples:
 
 Content-Type: application/octet-stream Content-Type: multipart/form-data;
 boundary="---123456" Content-Disposition: form-data; name=upload;
 filename="/tmp/myfile"
 
 
In addition to the actual header syntax, RFC822 header comments are allowed. Such comments consist of text enclosed in parentheses.


Constructor Summary
ContentHeader(MimeHeader hdr)
          Constructs a new ContentTypeHeader object from an existing MimeHeader object.
ContentHeader(java.lang.String headerLine)
          Constructs a new ContentTypeHeader object from an unparsed Mime Content-Type header line.
 
Method Summary
 
Methods inherited from class com.lutris.mime.MimeHeader
getHeaderType, getParameter, getParameterNames, getParameters, getRawHeaderLine, getValue, parseParameters, putParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentHeader

public ContentHeader(java.lang.String headerLine)
Constructs a new ContentTypeHeader object from an unparsed Mime Content-Type header line. The header line should include the entire line as read from the input source.

Parameters:
headerLine - The entire line containing the Mime header.

ContentHeader

public ContentHeader(MimeHeader hdr)
Constructs a new ContentTypeHeader object from an existing MimeHeader object.

Parameters:
hdr - An existing MimeHeader object.

EAF 7.4 Implementation