public interface Action
Action
interface defines a service interface for actions
to be plugged into the web console.
NOTE: This interface is just an intermediate solution for making the
web console extensible. Future releases of the web console will remove this
and the Render
interfaces and use the
javax.servlet.Servlet
interface with predefined service
registration properties instead.
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_REDIRECT_PARAMETERS
Deprecated.
The name of a request attribute, which may be set by performAction if
redirecting.
|
static String |
SERVICE
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getLabel()
Deprecated.
|
String |
getName()
Deprecated.
|
boolean |
performAction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Performs the action the request data optionally sending a response to
the HTTP Servlet Response.
|
static final String SERVICE
static final String ATTR_REDIRECT_PARAMETERS
String getName()
String getLabel()
boolean performAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
request
- response
- true
the client should be redirected after the
action has been taken. false
if this method also
provided response to the client and nore more processing is
required.IOException
- May be thrown if an I/O error occurrsjavax.servlet.ServletException
- May be thrown if another error occurrs while
processing the action. The rootCause
of the exception
should contain the cause of the error.Copyright © 2006–2013 The Apache Software Foundation. All rights reserved.