org.apache.felix.webconsole
Interface Action

All Known Implementing Classes:
GCAction, InstallAction, InstallFromRepoAction, RefreshRepoAction, SetStartLevelAction

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 String ATTR_REDIRECT_PARAMETERS
          Deprecated. The name of a request attribute, which may be set by performAction if redirecting.
static String SERVICE
          Deprecated.  
 
Method Summary
 String getLabel()
          Deprecated.  
 String getName()
          Deprecated.  
 boolean performAction(HttpServletRequest request, HttpServletResponse response)
          Deprecated. Performs the action the request data optionally sending a response to the HTTP Servlet Response.
 

Field Detail

SERVICE

static final String SERVICE
Deprecated. 

ATTR_REDIRECT_PARAMETERS

static final 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

String getName()
Deprecated. 

getLabel

String getLabel()
Deprecated. 

performAction

boolean performAction(HttpServletRequest request,
                      HttpServletResponse response)
                      throws IOException,
                             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:
IOException - May be thrown if an I/O error occurrs
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-2011 Apache Software Foundation. All Rights Reserved.