org.apache.cocoon.acting
Class SetCharacterEncodingAction
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.apache.cocoon.acting.SetCharacterEncodingAction
- All Implemented Interfaces:
- org.apache.cocoon.acting.Action, Parameterizable, Serviceable, ThreadSafe
- public class SetCharacterEncodingAction
- extends org.apache.cocoon.acting.ServiceableAction
- implements ThreadSafe, Parameterizable
Sets the character encoding of parameters.
Components use this encoding as default after the action.
Configuration parameters:
- form-encoding (optional)
- The supposed encoding of the request parameter.
These configuration options supported in both declaration and use time.
If no encoding specified, the action does nothing.
- Version:
- $Id: SetCharacterEncodingAction.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Fields inherited from class org.apache.cocoon.acting.ServiceableAction |
manager |
Fields inherited from class org.apache.cocoon.acting.AbstractAction |
EMPTY_MAP |
Fields inherited from interface org.apache.cocoon.acting.Action |
ROLE |
Method Summary |
Map |
act(org.apache.cocoon.environment.Redirector redirector,
org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Set character encoding of current request. |
void |
parameterize(Parameters parameters)
|
Methods inherited from class org.apache.cocoon.acting.ServiceableAction |
service |
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetCharacterEncodingAction
public SetCharacterEncodingAction()
parameterize
public void parameterize(Parameters parameters)
throws ParameterException
- Specified by:
parameterize
in interface Parameterizable
- Throws:
ParameterException
act
public Map act(org.apache.cocoon.environment.Redirector redirector,
org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
throws Exception
- Set character encoding of current request.
- Specified by:
act
in interface org.apache.cocoon.acting.Action
- Throws:
Exception
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.