org.apache.felix.webconsole.internal.compendium
Class ComponentRenderAction

java.lang.Object
  extended by org.apache.felix.webconsole.internal.BaseManagementPlugin
      extended by org.apache.felix.webconsole.internal.compendium.AbstractScrPlugin
          extended by org.apache.felix.webconsole.internal.compendium.ComponentRenderAction
All Implemented Interfaces:
Action, Render

public class ComponentRenderAction
extends AbstractScrPlugin
implements Render, Action


Field Summary
static java.lang.String COMPONENT_ID
           
static java.lang.String LABEL
           
static java.lang.String NAME
           
static java.lang.String OPERATION
           
static java.lang.String OPERATION_DETAILS
           
static java.lang.String OPERATION_DISABLE
           
static java.lang.String OPERATION_ENABLE
           
 
Fields inherited from interface org.apache.felix.webconsole.Render
SERVICE
 
Fields inherited from interface org.apache.felix.webconsole.Action
ATTR_REDIRECT_PARAMETERS, SERVICE
 
Constructor Summary
ComponentRenderAction()
           
 
Method Summary
protected  long getComponentId(javax.servlet.http.HttpServletRequest request)
           
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 boolean performAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Performs the action the request data optionally sending a response to the HTTP Servlet Response.
 void render(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class org.apache.felix.webconsole.internal.compendium.AbstractScrPlugin
getScrService
 
Methods inherited from class org.apache.felix.webconsole.internal.BaseManagementPlugin
getBundleContext, getLog, getPackageAdmin, getStartLevel, setBundleContext, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

LABEL

public static final java.lang.String LABEL
See Also:
Constant Field Values

COMPONENT_ID

public static final java.lang.String COMPONENT_ID
See Also:
Constant Field Values

OPERATION

public static final java.lang.String OPERATION
See Also:
Constant Field Values

OPERATION_DETAILS

public static final java.lang.String OPERATION_DETAILS
See Also:
Constant Field Values

OPERATION_ENABLE

public static final java.lang.String OPERATION_ENABLE
See Also:
Constant Field Values

OPERATION_DISABLE

public static final java.lang.String OPERATION_DISABLE
See Also:
Constant Field Values
Constructor Detail

ComponentRenderAction

public ComponentRenderAction()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Action
Specified by:
getName in interface Render

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface Action
Specified by:
getLabel in interface Render

performAction

public boolean performAction(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws java.io.IOException
Description copied from interface: Action
Performs the action the request data optionally sending a response to the HTTP Servlet Response.

Specified by:
performAction in interface Action
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

render

public void render(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException
Specified by:
render in interface Render
Throws:
java.io.IOException

getComponentId

protected long getComponentId(javax.servlet.http.HttpServletRequest request)