|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
org.apache.felix.webconsole.internal.servlet.OsgiManager
public class OsgiManager
The OSGi Manager
is the actual Web Console Servlet which
is registered with the OSGi Http Service and which maintains registered
console plugins.
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 |
---|
public static final String PARAM_NO_REDIRECT_AFTER_ACTION
public static final int DEFAULT_LOG_LEVEL
Constructor Detail |
---|
public OsgiManager(BundleContext bundleContext)
Method Detail |
---|
public void dispose()
public void init()
GenericServlet
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()
.
init
in class GenericServlet
GenericServlet.init()
public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException
GenericServlet
Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
.
This method is declared abstract so subclasses, such as
HttpServlet
, must override it.
service
in interface Servlet
service
in class GenericServlet
req
- the ServletRequest
object
that contains the client's requestres
- the ServletResponse
object
that will contain the servlet's response
ServletException
- if an exception occurs that
interferes with the servlet's
normal operation occurred
IOException
- if an input or output
exception occursGenericServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
public void destroy()
GenericServlet
Servlet.destroy()
.
destroy
in interface Servlet
destroy
in class GenericServlet
GenericServlet.destroy()
protected void bindHttpService(HttpService httpService)
protected void unbindHttpService(HttpService httpService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |