com.opensymphony.module.sitemesh.filter
Class HttpContentType

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

public class HttpContentType
extends Object

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

Author:
Scott Farquhar

Field Summary
private  String encoding
           
private  String type
           
 
Constructor Summary
HttpContentType(String fullValue)
           
 
Method Summary
private  String extractContentTypeValue(String type, int startIndex)
           
 String getEncoding()
           
 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 String type

encoding

private final String encoding
Constructor Detail

HttpContentType

public HttpContentType(String fullValue)
Method Detail

extractContentTypeValue

private String extractContentTypeValue(String type,
                                       int startIndex)

getType

public String getType()

getEncoding

public String getEncoding()

www.opensymphony.com/sitemesh/