public class GrizzlyHttpServerFactory extends Object
server.getListener("grizzly").getTransport(). To make certain
options take effect, you need to work with a non-started-yet HttpServer instance.
To obtain such an instance, use one of the bellow factory methods with start
parameter set to false. When the start parameter is not present,
the factory method returns an already started instance.HttpServer,
GrizzlyHttpContainer| Modifier and Type | Method and Description |
|---|---|
static org.glassfish.grizzly.http.server.HttpServer |
createHttpServer(URI uri)
Creates HttpServer instance.
|
static org.glassfish.grizzly.http.server.HttpServer |
createHttpServer(URI uri,
ApplicationHandler appHandler)
Creates HttpServer instance.
|
static org.glassfish.grizzly.http.server.HttpServer |
createHttpServer(URI uri,
ApplicationHandler appHandler,
boolean start)
Creates HttpServer instance.
|
static org.glassfish.grizzly.http.server.HttpServer |
createHttpServer(URI uri,
ApplicationHandler appHandler,
boolean secure,
org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
Creates HttpServer instance.
|
static org.glassfish.grizzly.http.server.HttpServer |
createHttpServer(URI uri,
ApplicationHandler appHandler,
boolean secure,
org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator,
boolean start)
Creates HttpServer instance.
|
static org.glassfish.grizzly.http.server.HttpServer |
createHttpServer(URI uri,
boolean start)
Creates HttpServer instance.
|
static org.glassfish.grizzly.http.server.HttpServer |
createHttpServer(URI uri,
ResourceConfig configuration)
Creates HttpServer instance.
|
static org.glassfish.grizzly.http.server.HttpServer |
createHttpServer(URI uri,
ResourceConfig configuration,
boolean start)
Creates HttpServer instance.
|
static org.glassfish.grizzly.http.server.HttpServer |
createHttpServer(URI uri,
ResourceConfig configuration,
boolean secure,
org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
Creates HttpServer instance.
|
static org.glassfish.grizzly.http.server.HttpServer |
createHttpServer(URI uri,
ResourceConfig configuration,
boolean secure,
org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator,
boolean start)
Creates HttpServer instance.
|
public static org.glassfish.grizzly.http.server.HttpServer createHttpServer(URI uri) throws ProcessingException
uri - uri on which the ApplicationHandler will be deployed.HttpServer.ProcessingExceptionpublic static org.glassfish.grizzly.http.server.HttpServer createHttpServer(URI uri, boolean start) throws ProcessingException
uri - uri on which the ApplicationHandler will be deployed.start - if set to false, server will not get started, which allows to configure the underlying transport layer, see above for detailsHttpServer.ProcessingExceptionpublic static org.glassfish.grizzly.http.server.HttpServer createHttpServer(URI uri, ResourceConfig configuration) throws ProcessingException
uri - URI on which the Jersey web application will be deployed.configuration - web application configuration.HttpServer.ProcessingExceptionpublic static org.glassfish.grizzly.http.server.HttpServer createHttpServer(URI uri, ResourceConfig configuration, boolean start) throws ProcessingException
uri - URI on which the Jersey web application will be deployed.configuration - web application configuration.start - if set to false, server will not get started, which allows to configure the underlying transport layer, see above for detailsHttpServer.ProcessingExceptionpublic static org.glassfish.grizzly.http.server.HttpServer createHttpServer(URI uri, ApplicationHandler appHandler) throws ProcessingException
uri - URI on which the Jersey web application will be deployed.appHandler - web application handler.HttpServer.ProcessingExceptionpublic static org.glassfish.grizzly.http.server.HttpServer createHttpServer(URI uri, ApplicationHandler appHandler, boolean start) throws ProcessingException
uri - URI on which the Jersey web application will be deployed.appHandler - web application handler.start - if set to false, server will not get started, which allows to configure the underlying transport, see above for detailsHttpServer.ProcessingExceptionpublic static org.glassfish.grizzly.http.server.HttpServer createHttpServer(URI uri, ResourceConfig configuration, boolean secure, org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
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).HttpServer.public static org.glassfish.grizzly.http.server.HttpServer createHttpServer(URI uri, ResourceConfig configuration, boolean secure, org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator, boolean start)
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).start - if set to false, server will not get started, which allows to configure the underlying transport, see above for detailsHttpServer.public static org.glassfish.grizzly.http.server.HttpServer createHttpServer(URI uri, ApplicationHandler appHandler, boolean secure, org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
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).HttpServer.public static org.glassfish.grizzly.http.server.HttpServer createHttpServer(URI uri, ApplicationHandler appHandler, boolean secure, org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator, boolean start)
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).start - if set to false, server will not get started, which allows to configure the underlying transport, see above for detailsHttpServer.Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.