public final class PerBundleHttpServiceImpl extends Object implements org.osgi.service.http.HttpService
HttpService implements the front end
used by client bundles. It performs the validity checks and passes the
real operation to the shared http service.| Constructor and Description |
|---|
PerBundleHttpServiceImpl(org.osgi.framework.Bundle bundle,
SharedHttpServiceImpl sharedHttpService,
javax.servlet.ServletContext context,
boolean sharedContextAttributes) |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.service.http.HttpContext |
createDefaultHttpContext() |
ExtServletContext |
getServletContext(org.osgi.service.http.HttpContext context) |
void |
registerResources(String alias,
String name,
org.osgi.service.http.HttpContext context)
No need to sync this method, syncing is done via
registerServlet(String, Servlet, Dictionary, HttpContext) |
void |
registerServlet(String alias,
javax.servlet.Servlet servlet,
Dictionary initParams,
org.osgi.service.http.HttpContext context) |
void |
unregister(String alias) |
void |
unregisterAll() |
public PerBundleHttpServiceImpl(org.osgi.framework.Bundle bundle,
SharedHttpServiceImpl sharedHttpService,
javax.servlet.ServletContext context,
boolean sharedContextAttributes)
public org.osgi.service.http.HttpContext createDefaultHttpContext()
createDefaultHttpContext in interface org.osgi.service.http.HttpServicepublic void registerResources(String alias, String name, org.osgi.service.http.HttpContext context) throws org.osgi.service.http.NamespaceException
registerServlet(String, Servlet, Dictionary, HttpContext)registerResources in interface org.osgi.service.http.HttpServiceorg.osgi.service.http.NamespaceExceptionHttpService.registerResources(java.lang.String, java.lang.String, org.osgi.service.http.HttpContext)public void registerServlet(String alias, javax.servlet.Servlet servlet, Dictionary initParams, org.osgi.service.http.HttpContext context) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
registerServlet in interface org.osgi.service.http.HttpServicejavax.servlet.ServletExceptionorg.osgi.service.http.NamespaceExceptionHttpService.registerServlet(java.lang.String, javax.servlet.Servlet, java.util.Dictionary, org.osgi.service.http.HttpContext)public void unregister(String alias)
unregister in interface org.osgi.service.http.HttpServiceHttpService.unregister(java.lang.String)public void unregisterAll()
public ExtServletContext getServletContext(org.osgi.service.http.HttpContext context)
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.