public final class GrizzlyWebContainerFactory extends Object
HttpServer
instances
for deploying a Servlet.
The default deployed server is an instance of ServletContainer
.
If no initialization parameters are declared (or is null) then root resource and provider classes will be found by searching the classes referenced in the java classpath.
Modifier and Type | Method and Description |
---|---|
static org.glassfish.grizzly.http.server.HttpServer |
create(String u)
Create a
HttpServer that registers the ServletContainer . |
static org.glassfish.grizzly.http.server.HttpServer |
create(String u,
Class<? extends javax.servlet.Servlet> c)
Create a
HttpServer that registers the declared
servlet class. |
static org.glassfish.grizzly.http.server.HttpServer |
create(String u,
Class<? extends javax.servlet.Servlet> c,
Map<String,String> initParams)
Create a
HttpServer that registers the declared
servlet class. |
static org.glassfish.grizzly.http.server.HttpServer |
create(String u,
Map<String,String> initParams)
Create a
HttpServer that registers the ServletContainer . |
static org.glassfish.grizzly.http.server.HttpServer |
create(URI u)
Create a
HttpServer that registers the ServletContainer . |
static org.glassfish.grizzly.http.server.HttpServer |
create(URI u,
Class<? extends javax.servlet.Servlet> c)
Create a
HttpServer that registers the declared
servlet class. |
static org.glassfish.grizzly.http.server.HttpServer |
create(URI u,
Class<? extends javax.servlet.Servlet> c,
Map<String,String> initParams)
Create a
HttpServer that registers the declared
servlet class. |
static org.glassfish.grizzly.http.server.HttpServer |
create(URI u,
Map<String,String> initParams)
Create a
HttpServer that registers the ServletContainer . |
public static org.glassfish.grizzly.http.server.HttpServer create(String u) throws IOException, IllegalArgumentException
HttpServer
that registers the ServletContainer
.u
- the URI to create the http server. The URI scheme must be
equal to "http". The URI user information and host
are ignored If the URI port is not present then port 80 will be
used. The URI path, query and fragment components are ignored.IOException
- if an error occurs creating the container.IllegalArgumentException
- if u
is nullpublic static org.glassfish.grizzly.http.server.HttpServer create(String u, Map<String,String> initParams) throws IOException, IllegalArgumentException
HttpServer
that registers the ServletContainer
.u
- the URI to create the http server. The URI scheme must be
equal to "http". The URI user information and host
are ignored If the URI port is not present then port 80 will be
used. The URI path, query and fragment components are ignored.initParams
- the servlet initialization parameters.IOException
- if an error occurs creating the container.IllegalArgumentException
- if u
is nullpublic static org.glassfish.grizzly.http.server.HttpServer create(URI u) throws IOException, IllegalArgumentException
HttpServer
that registers the ServletContainer
.u
- the URI to create the http server. The URI scheme must be
equal to "http". The URI user information and host
are ignored If the URI port is not present then port 80 will be
used. The URI path, query and fragment components are ignored.IOException
- if an error occurs creating the container.IllegalArgumentException
- if u
is nullpublic static org.glassfish.grizzly.http.server.HttpServer create(URI u, Map<String,String> initParams) throws IOException
HttpServer
that registers the ServletContainer
.u
- the URI to create the http server. The URI scheme must be
equal to "http". The URI user information and host
are ignored If the URI port is not present then port 80 will be
used. The URI path, query and fragment components are ignored.initParams
- the servlet initialization parameters.IOException
- if an error occurs creating the container.IllegalArgumentException
- if u
is nullpublic static org.glassfish.grizzly.http.server.HttpServer create(String u, Class<? extends javax.servlet.Servlet> c) throws IOException
HttpServer
that registers the declared
servlet class.u
- the URI to create the http server. The URI scheme must be
equal to "http". The URI user information and host
are ignored If the URI port is not present then port 80 will be
used. The URI path, query and fragment components are ignored.c
- the servlet classIOException
- if an error occurs creating the container.IllegalArgumentException
- if u
is nullpublic static org.glassfish.grizzly.http.server.HttpServer create(String u, Class<? extends javax.servlet.Servlet> c, Map<String,String> initParams) throws IOException
HttpServer
that registers the declared
servlet class.u
- the URI to create the http server. The URI scheme must be
equal to "http". The URI user information and host
are ignored If the URI port is not present then port 80 will be
used. The URI path, query and fragment components are ignored.c
- the servlet classinitParams
- the servlet initialization parameters.IOException
- if an error occurs creating the container.IllegalArgumentException
- if u
is nullpublic static org.glassfish.grizzly.http.server.HttpServer create(URI u, Class<? extends javax.servlet.Servlet> c) throws IOException
HttpServer
that registers the declared
servlet class.u
- the URI to create the http server. The URI scheme must be
equal to "http". The URI user information and host
are ignored If the URI port is not present then port 80 will be
used. The URI path, query and fragment components are ignored.c
- the servlet classIOException
- if an error occurs creating the container.IllegalArgumentException
- if u
is nullpublic static org.glassfish.grizzly.http.server.HttpServer create(URI u, Class<? extends javax.servlet.Servlet> c, Map<String,String> initParams) throws IOException
HttpServer
that registers the declared
servlet class.u
- the URI to create the http server. The URI scheme must be
equal to "http". The URI user information and host
are ignored If the URI port is not present then port 80 will be
used. The URI path, query and fragment components are ignored.c
- the servlet classinitParams
- the servlet initialization parameters.IOException
- if an error occurs creating the container.IllegalArgumentException
- if u
is nullCopyright © 2013 Oracle Corporation. All rights reserved.