Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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) $

Field Summary

Fields inherited from interface org.apache.commons.chain.Command
`CONTINUE_PROCESSING, PROCESSING_COMPLETE`

Constructor Summary
`AbstractSetContentType()`

Method Summary
`boolean` | `execute(ActionContext actionCtx)` Check to see if the content type is set, and if so, set it for this response.
`protected abstract void` | `setContentType(ActionContext context, String contentType)` Request no cache flags are set.

Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
`execute`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AbstractSetContentType

    public AbstractSetContentType()

Method Detail

### 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 request
    `contentType` - The content type for the response

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.