org.glassfish.jersey.grizzly2.httpserver
Class GrizzlyHttpServerFactory

java.lang.Object
  extended by org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory

public class GrizzlyHttpServerFactory
extends java.lang.Object

Factory for creating Grizzly Http Server.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com), Pavel Bucek (pavel.bucek at oracle.com)
See Also:
HttpServer, GrizzlyHttpContainer

Method Summary
static org.glassfish.grizzly.http.server.HttpServer createHttpServer(java.net.URI uri)
          Creates HttpServer instance.
static org.glassfish.grizzly.http.server.HttpServer createHttpServer(java.net.URI uri, ApplicationHandler appHandler)
          Creates HttpServer instance.
static org.glassfish.grizzly.http.server.HttpServer createHttpServer(java.net.URI uri, ApplicationHandler appHandler, boolean secure, org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
          Creates HttpServer instance.
static org.glassfish.grizzly.http.server.HttpServer createHttpServer(java.net.URI uri, ResourceConfig configuration)
          Creates HttpServer instance.
static org.glassfish.grizzly.http.server.HttpServer createHttpServer(java.net.URI uri, ResourceConfig configuration, boolean secure, org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
          Creates HttpServer instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createHttpServer

public static org.glassfish.grizzly.http.server.HttpServer createHttpServer(java.net.URI uri,
                                                                            ResourceConfig configuration)
                                                                     throws ProcessingException
Creates HttpServer instance.

Parameters:
uri - URI on which the Jersey web application will be deployed.
configuration - web application configuration.
Returns:
newly created HttpServer.
Throws:
ProcessingException

createHttpServer

public static org.glassfish.grizzly.http.server.HttpServer createHttpServer(java.net.URI uri,
                                                                            ApplicationHandler appHandler)
                                                                     throws ProcessingException
Creates HttpServer instance.

Parameters:
uri - URI on which the Jersey web application will be deployed.
appHandler - web application handler.
Returns:
newly created HttpServer.
Throws:
ProcessingException

createHttpServer

public static org.glassfish.grizzly.http.server.HttpServer createHttpServer(java.net.URI uri)
                                                                     throws ProcessingException
Creates HttpServer instance.

Parameters:
uri - uri on which the ApplicationHandler will be deployed.
Returns:
newly created HttpServer.
Throws:
ProcessingException

createHttpServer

public static org.glassfish.grizzly.http.server.HttpServer createHttpServer(java.net.URI uri,
                                                                            ResourceConfig configuration,
                                                                            boolean secure,
                                                                            org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
Creates HttpServer instance.

Parameters:
uri - URI on which the Jersey web application will be deployed.
configuration - web application configuration.
secure - used for call NetworkListener.setSecure(boolean).
sslEngineConfigurator - Ssl settings to be passed to NetworkListener.setSSLEngineConfig(org.glassfish.grizzly.ssl.SSLEngineConfigurator).
Returns:
newly created HttpServer.

createHttpServer

public static org.glassfish.grizzly.http.server.HttpServer createHttpServer(java.net.URI uri,
                                                                            ApplicationHandler appHandler,
                                                                            boolean secure,
                                                                            org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
Creates HttpServer instance.

Parameters:
uri - URI on which the Jersey web application will be deployed.
appHandler - web application handler.
secure - used for call NetworkListener.setSecure(boolean).
sslEngineConfigurator - Ssl settings to be passed to NetworkListener.setSSLEngineConfig(org.glassfish.grizzly.ssl.SSLEngineConfigurator).
Returns:
newly created HttpServer.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.