public abstract class AbstractPerformInclude extends ActionCommandBase
Perform forwarding or redirection based on the specified
String
(if any).
Constructor and Description |
---|
AbstractPerformInclude() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(ActionContext actionCtx)
Perform an include based on the specified include uri (if any).
|
protected String |
includePath(ActionContext actionContext,
String include)
Returns the path to perform the include.
|
protected abstract void |
perform(ActionContext context,
String include)
Perform the appropriate processing on the specified include
uri.
|
execute
public boolean execute(ActionContext actionCtx) throws Exception
Perform an include based on the specified include uri (if any).
execute
in interface ActionCommand
execute
in class ActionCommandBase
actionCtx
- The Context
for the current requesttrue
so that processing completesException
- if thrown by the Action
protected String includePath(ActionContext actionContext, String include)
Returns the path to perform the include. Override this method to provide a different path.
actionContext
- The context for this requestinclude
- The forward to be performedprotected abstract void perform(ActionContext context, String include) throws Exception
Perform the appropriate processing on the specified include uri.
context
- The context for this requestinclude
- The forward to be performedException
- if thrown by the Action
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.