org.apache.felix.webconsole.internal.servlet
Class OsgiManager

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by org.apache.felix.webconsole.internal.servlet.OsgiManager
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class OsgiManager
extends GenericServlet

The OSGi Manager is the actual Web Console Servlet which is registered with the OSGi Http Service and which maintains registered console plugins.

See Also:
Serialized Form

Field Summary
static int DEFAULT_LOG_LEVEL
           
static String PARAM_NO_REDIRECT_AFTER_ACTION
          The name and value of a parameter which will prevent redirection to a render after the action has been executed (value is "_noredir_").
 
Constructor Summary
OsgiManager(BundleContext bundleContext)
           
 
Method Summary
protected  void bindHttpService(HttpService httpService)
           
 void destroy()
          Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.
 void dispose()
           
 void init()
          A convenience method which can be overridden so that there's no need to call super.init(config).
 void service(ServletRequest req, ServletResponse res)
          Called by the servlet container to allow the servlet to respond to a request.
protected  void unbindHttpService(HttpService httpService)
           
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_NO_REDIRECT_AFTER_ACTION

public static final String PARAM_NO_REDIRECT_AFTER_ACTION
The name and value of a parameter which will prevent redirection to a render after the action has been executed (value is "_noredir_"). This may be used by programmatic action submissions.

See Also:
Constant Field Values

DEFAULT_LOG_LEVEL

public static final int DEFAULT_LOG_LEVEL
See Also:
Constant Field Values
Constructor Detail

OsgiManager

public OsgiManager(BundleContext bundleContext)
Method Detail

dispose

public void dispose()

init

public void init()
Description copied from class: GenericServlet
A convenience method which can be overridden so that there's no need to call super.init(config).

Instead of overriding GenericServlet.init(ServletConfig), simply override this method and it will be called by GenericServlet.init(ServletConfig config). The ServletConfig object can still be retrieved via GenericServlet.getServletConfig().

Overrides:
init in class GenericServlet
See Also:
GenericServlet.init()

service

public void service(ServletRequest req,
                    ServletResponse res)
             throws ServletException,
                    IOException
Description copied from class: GenericServlet
Called by the servlet container to allow the servlet to respond to a request. See Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse).

This method is declared abstract so subclasses, such as HttpServlet, must override it.

Specified by:
service in interface Servlet
Specified by:
service in class GenericServlet
Parameters:
req - the ServletRequest object that contains the client's request
res - the ServletResponse object that will contain the servlet's response
Throws:
ServletException - if an exception occurs that interferes with the servlet's normal operation occurred
IOException - if an input or output exception occurs
See Also:
GenericServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)

destroy

public void destroy()
Description copied from class: GenericServlet
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. See Servlet.destroy().

Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet
See Also:
GenericServlet.destroy()

bindHttpService

protected void bindHttpService(HttpService httpService)

unbindHttpService

protected void unbindHttpService(HttpService httpService)


Copyright © 2011 Apache Software Foundation. All Rights Reserved.