org.apache.felix.webconsole
Interface Action

All Known Implementing Classes:
AjaxBundleDetailsAction, AjaxConfigManagerAction, ComponentRenderAction, GCAction, InstallAction, InstallFromRepoAction, RefreshPackagesAction, RefreshRepoAction, SetStartLevelAction, ShutdownAction, StartAction, StopAction, UninstallAction, UpdateAction

Deprecated. This interface will be removed when FELIX-574 will be implemented.

public interface Action

The 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.


Field Summary
static java.lang.String ATTR_REDIRECT_PARAMETERS
          Deprecated. The name of a request attribute, which may be set by performAction if redirecting.
static java.lang.String SERVICE
          Deprecated.  
 
Method Summary
 java.lang.String getLabel()
          Deprecated.  
 java.lang.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.
 

Field Detail

SERVICE

static final java.lang.String SERVICE
Deprecated. 

ATTR_REDIRECT_PARAMETERS

static final java.lang.String ATTR_REDIRECT_PARAMETERS
Deprecated. 
The name of a request attribute, which may be set by performAction if redirecting.

See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Deprecated. 

getLabel

java.lang.String getLabel()
Deprecated. 

performAction

boolean performAction(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
                      throws java.io.IOException,
                             javax.servlet.ServletException
Deprecated. 
Performs the action the request data optionally sending a response to the HTTP Servlet Response.

Parameters:
request -
response -
Returns:
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.
Throws:
java.io.IOException - May be thrown if an I/O error occurrs
javax.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.