org.apache.felix.http.jetty
Class HttpServiceImpl
java.lang.Object
org.apache.felix.http.jetty.HttpServiceImpl
- All Implemented Interfaces:
- org.osgi.service.http.HttpService
public class HttpServiceImpl
- extends java.lang.Object
- implements org.osgi.service.http.HttpService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServiceImpl
public HttpServiceImpl(org.osgi.framework.Bundle bundle,
org.mortbay.jetty.Server server,
OsgiServletHandler serverServletHandler)
initializeStatics
public static void initializeStatics()
- Initializes static variables.
createDefaultHttpContext
public org.osgi.service.http.HttpContext createDefaultHttpContext()
- Specified by:
createDefaultHttpContext
in interface org.osgi.service.http.HttpService
registerServlet
public void registerServlet(java.lang.String alias,
javax.servlet.Servlet servlet,
java.util.Dictionary params,
org.osgi.service.http.HttpContext osgiHttpContext)
throws javax.servlet.ServletException,
org.osgi.service.http.NamespaceException
- Specified by:
registerServlet
in interface org.osgi.service.http.HttpService
- Throws:
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
registerResources
public void registerResources(java.lang.String alias,
java.lang.String name,
org.osgi.service.http.HttpContext osgiHttpContext)
throws org.osgi.service.http.NamespaceException
- Specified by:
registerResources
in interface org.osgi.service.http.HttpService
- Throws:
org.osgi.service.http.NamespaceException
unregister
public void unregister(java.lang.String alias)
- Specified by:
unregister
in interface org.osgi.service.http.HttpService
unregisterAll
protected void unregisterAll()
doUnregister
protected void doUnregister(java.lang.String alias,
boolean forced)
addAlias
protected void addAlias(java.lang.String alias,
java.lang.Object obj)
throws org.osgi.service.http.NamespaceException
- Throws:
org.osgi.service.http.NamespaceException
removeAlias
protected ServletContextGroup removeAlias(java.lang.String alias)
updateAlias
protected void updateAlias(java.lang.String alias,
java.lang.Object obj)
aliasValid
protected boolean aliasValid(java.lang.String alias)