org.apache.struts.chain.commands
Class AbstractSetContentType
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractSetContentType
- All Implemented Interfaces:
- org.apache.commons.chain.Command, ActionCommand
- Direct Known Subclasses:
- SetContentType
public abstract class AbstractSetContentType
- extends ActionCommandBase
Check to see if the content type is set, and if so, set it for this
response.
- Version:
- $Rev: 471754 $ $Date: 2005-11-12 13:01:44 -0500 (Sat, 12 Nov 2005)
$
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSetContentType
public AbstractSetContentType()
execute
public boolean execute(ActionContext actionCtx)
throws Exception
Check to see if the content type is set, and if so, set it for this
response.
- Specified by:
execute
in interface ActionCommand
- Specified by:
execute
in class ActionCommandBase
- Parameters:
actionCtx
- The Context
for the current request
- Returns:
false
so that processing continues
- Throws:
Exception
- if thrown by the Action class
setContentType
protected abstract void setContentType(ActionContext context,
String contentType)
Request no cache flags are set.
- Parameters:
context
- The Context
for this requestcontentType
- The content type for the response
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.