AbstractSelectModule (Struts Core 1.3.10 API)

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 AbstractSelectModule

    java.lang.Object
      org.apache.struts.chain.commands.ActionCommandBase
          org.apache.struts.chain.commands.AbstractSelectModule

All Implemented Interfaces:
  org.apache.commons.chain.Command, ActionCommand

Direct Known Subclasses:
  SelectModule

    public abstract class AbstractSelectModule

extends ActionCommandBase

Cache the `ModuleConfig` and `MessageResources` instances for the sub-application module to be used for processing this request.

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
`AbstractSelectModule()`

Method Summary
`boolean` | `execute(ActionContext actionCtx)` Cache the `ModuleConfig` and `MessageResources` instances for the sub-application module to be used for processing this request.
`protected abstract String` | `getPrefix(ActionContext context)` Calculate and return the module prefix for the module to be selected for this request.

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

### AbstractSelectModule

    public AbstractSelectModule()

Method Detail

### execute

    public boolean execute(ActionContext actionCtx)
                    throws Exception

  Cache the `ModuleConfig` and `MessageResources` instances for the sub-application module to be used for processing this request.

  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:
    `IllegalArgumentException` - if no valid ModuleConfig or MessageResources can be identified for this request
    `Exception` - if thrown by the Action class

### getPrefix

    protected abstract String getPrefix(ActionContext context)

  Calculate and return the module prefix for the module to be selected for this request.

  Parameters:
    `context` - The `Context` for this request
  Returns:
    Module prefix to be used with this request
  Throws:
    `IllegalArgumentException` - if no valid ModuleConfig or MessageResources can be identified for this request

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.