com.sun.grizzly.osgi.httpservice
Class HttpServiceImpl

java.lang.Object
  extended by com.sun.grizzly.osgi.httpservice.HttpServiceImpl
All Implemented Interfaces:
org.osgi.service.http.HttpService

public class HttpServiceImpl
extends Object
implements org.osgi.service.http.HttpService

Grizzly OSGi HttpService implementation.

Since:
Jan 20, 2009
Author:
Hubert Iwaniuk

Constructor Summary
HttpServiceImpl(org.osgi.framework.Bundle bundle, Logger logger)
          HttpService constructor.
 
Method Summary
 org.osgi.service.http.HttpContext createDefaultHttpContext()
          
 void registerResources(String alias, String prefix, org.osgi.service.http.HttpContext httpContext)
          
 void registerServlet(String alias, javax.servlet.Servlet servlet, Dictionary initparams, org.osgi.service.http.HttpContext httpContext)
          
 void unregister(String alias)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServiceImpl

public HttpServiceImpl(org.osgi.framework.Bundle bundle,
                       Logger logger)
HttpService constructor.

Parameters:
bundle - Bundle that got this instance of HttpService.
logger - Logger utility to be used here.
Method Detail

createDefaultHttpContext

public org.osgi.service.http.HttpContext createDefaultHttpContext()

Specified by:
createDefaultHttpContext in interface org.osgi.service.http.HttpService

registerServlet

public void registerServlet(String alias,
                            javax.servlet.Servlet servlet,
                            Dictionary initparams,
                            org.osgi.service.http.HttpContext httpContext)
                     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(String alias,
                              String prefix,
                              org.osgi.service.http.HttpContext httpContext)
                       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(String alias)

Specified by:
unregister in interface org.osgi.service.http.HttpService


Copyright © 2013 Oracle Corporation. All Rights Reserved.