org.apache.wicket.extensions.util.encoding
Class CharSetUtil

java.lang.Object
  extended by org.apache.wicket.extensions.util.encoding.CharSetUtil

public class CharSetUtil
extends java.lang.Object

Utility class. Initialize Locale to character encoding mapping based on defaults and optionally a properties file CharSetMap.CHARSET_RESOURCE to be found in WEB-INF.

Author:
Jonathan Locke, Juergen Donnerstag

Constructor Summary
CharSetUtil()
          Constructor
 
Method Summary
static java.lang.String getEncoding(RequestCycle cycle)
          Based on the Session's locale determine the associated character encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharSetUtil

public CharSetUtil()
Constructor

Method Detail

getEncoding

public static final java.lang.String getEncoding(RequestCycle cycle)
Based on the Session's locale determine the associated character encoding.

Parameters:
cycle -
Returns:
Char set to use for response.


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.