com.opensymphony.module.sitemesh.filter
Class HttpContentType

java.lang.Object
  extended by com.opensymphony.module.sitemesh.filter.HttpContentType

public class HttpContentType
extends java.lang.Object

Extracts the type and encoding from an HTTP Content-Type header.

Author:
Scott Farquhar

Field Summary
private  java.lang.String encoding
           
private  java.lang.String type
           
 
Constructor Summary
HttpContentType(java.lang.String fullValue)
           
 
Method Summary
private  java.lang.String extractContentTypeValue(java.lang.String type, int startIndex)
           
 java.lang.String getEncoding()
           
 java.lang.String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private final java.lang.String type

encoding

private final java.lang.String encoding
Constructor Detail

HttpContentType

public HttpContentType(java.lang.String fullValue)
Method Detail

extractContentTypeValue

private java.lang.String extractContentTypeValue(java.lang.String type,
                                                 int startIndex)

getType

public java.lang.String getType()

getEncoding

public java.lang.String getEncoding()

www.opensymphony.com/sitemesh/