org.apache.struts.chain
Class AbstractSetContentType

java.lang.Object
  extended byorg.apache.struts.chain.AbstractSetContentType
All Implemented Interfaces:
org.apache.commons.chain.Command
Direct Known Subclasses:
SetContentType

public abstract class AbstractSetContentType
extends java.lang.Object
implements org.apache.commons.chain.Command

Check to see if the content type is set, and if so, set it for this response.

Version:
$Rev: 54933 $ $Date: 2004-10-16 18:04:52 +0100 (Sat, 16 Oct 2004) $
Author:
Don Brown

Field Summary
private  java.lang.String moduleConfigKey
           
 
Constructor Summary
AbstractSetContentType()
           
 
Method Summary
 boolean execute(org.apache.commons.chain.Context context)
          Check to see if the content type is set, and if so, set it for this response.
 java.lang.String getModuleConfigKey()
          Return the context attribute key under which the ModuleConfig for the currently selected application module is stored.
protected abstract  void setContentType(org.apache.commons.chain.Context context, java.lang.String contentType)
          Request no cache flags are set.
 void setModuleConfigKey(java.lang.String moduleConfigKey)
          Set the context attribute key under which the ModuleConfig for the currently selected application module is stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moduleConfigKey

private java.lang.String moduleConfigKey
Constructor Detail

AbstractSetContentType

public AbstractSetContentType()
Method Detail

getModuleConfigKey

public java.lang.String getModuleConfigKey()

Return the context attribute key under which the ModuleConfig for the currently selected application module is stored.


setModuleConfigKey

public void setModuleConfigKey(java.lang.String moduleConfigKey)

Set the context attribute key under which the ModuleConfig for the currently selected application module is stored.

Parameters:
moduleConfigKey - The new context attribute key

execute

public boolean execute(org.apache.commons.chain.Context context)
                throws java.lang.Exception

Check to see if the content type is set, and if so, set it for this response.

Specified by:
execute in interface org.apache.commons.chain.Command
Parameters:
context - The Context for the current request
Returns:
false so that processing continues
Throws:
java.lang.Exception

setContentType

protected abstract void setContentType(org.apache.commons.chain.Context context,
                                       java.lang.String contentType)

Request no cache flags are set.

Parameters:
context - The Context for this request
contentType - The content type for the response


Copyright ? 2003 - Apache Software Foundation