org.codehaus.httpcache4j.preference
Class Preferences

java.lang.Object
  extended by org.codehaus.httpcache4j.preference.Preferences

public final class Preferences
extends java.lang.Object

Collections for preferences.

Author:
Erlend Hamnaberg

Constructor Summary
Preferences()
           
 
Method Summary
 Preferences addCharset(java.lang.String charset)
           
 Preferences addCharset(java.lang.String charset, double quality)
           
 Preferences addLocale(java.util.Locale locale)
           
 Preferences addLocale(java.util.Locale locale, double quality)
           
 Preferences addMIMEType(MIMEType mimeType)
           
 Preferences addMIMEType(MIMEType mimeType, double quality)
           
 java.util.List<Preference<java.lang.String>> getAcceptCharset()
           
 java.util.List<Preference<java.util.Locale>> getAcceptLocales()
           
 java.util.List<Preference<MIMEType>> getAcceptMIMETypes()
           
 Headers toHeaders()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Preferences

public Preferences()
Method Detail

addLocale

public Preferences addLocale(java.util.Locale locale)

addLocale

public Preferences addLocale(java.util.Locale locale,
                             double quality)

addMIMEType

public Preferences addMIMEType(MIMEType mimeType,
                               double quality)

addMIMEType

public Preferences addMIMEType(MIMEType mimeType)

addCharset

public Preferences addCharset(java.lang.String charset)

addCharset

public Preferences addCharset(java.lang.String charset,
                              double quality)

getAcceptLocales

public java.util.List<Preference<java.util.Locale>> getAcceptLocales()

getAcceptMIMETypes

public java.util.List<Preference<MIMEType>> getAcceptMIMETypes()

getAcceptCharset

public java.util.List<Preference<java.lang.String>> getAcceptCharset()

toHeaders

public Headers toHeaders()


Copyright © 2008-2009. All Rights Reserved.