org.apache.felix.http.jetty
Class HttpServiceImpl

java.lang.Object
  extended by org.apache.felix.http.jetty.HttpServiceImpl
All Implemented Interfaces:
HttpService

public class HttpServiceImpl
extends Object
implements HttpService


Constructor Summary
HttpServiceImpl(Bundle bundle, org.mortbay.jetty.Server server, OsgiServletHandler serverServletHandler)
           
 
Method Summary
protected  void addAlias(String alias, Object obj)
           
protected  boolean aliasValid(String alias)
           
 HttpContext createDefaultHttpContext()
           
protected  void doUnregister(String alias, boolean forced)
           
static void initializeStatics()
          Initializes static variables.
protected  boolean nameValid(String name)
           
 void registerResources(String alias, String name, HttpContext osgiHttpContext)
           
 void registerServlet(String alias, Servlet servlet, Dictionary params, HttpContext osgiHttpContext)
           
protected  ServletContextGroup removeAlias(String alias)
           
 void unregister(String alias)
           
protected  void unregisterAll()
           
protected  void updateAlias(String alias, Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServiceImpl

public HttpServiceImpl(Bundle bundle,
                       org.mortbay.jetty.Server server,
                       OsgiServletHandler serverServletHandler)
Method Detail

initializeStatics

public static void initializeStatics()
Initializes static variables.


createDefaultHttpContext

public HttpContext createDefaultHttpContext()
Specified by:
createDefaultHttpContext in interface HttpService

registerServlet

public void registerServlet(String alias,
                            Servlet servlet,
                            Dictionary params,
                            HttpContext osgiHttpContext)
                     throws ServletException,
                            NamespaceException
Specified by:
registerServlet in interface HttpService
Throws:
ServletException
NamespaceException

registerResources

public void registerResources(String alias,
                              String name,
                              HttpContext osgiHttpContext)
                       throws NamespaceException
Specified by:
registerResources in interface HttpService
Throws:
NamespaceException

unregister

public void unregister(String alias)
Specified by:
unregister in interface HttpService

unregisterAll

protected void unregisterAll()

doUnregister

protected void doUnregister(String alias,
                            boolean forced)

addAlias

protected void addAlias(String alias,
                        Object obj)
                 throws NamespaceException
Throws:
NamespaceException

removeAlias

protected ServletContextGroup removeAlias(String alias)

updateAlias

protected void updateAlias(String alias,
                           Object obj)

aliasValid

protected boolean aliasValid(String alias)

nameValid

protected boolean nameValid(String name)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.