public final class GrizzlyServerFactory
extends java.lang.Object
SelectorThread
instances.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FEATURE_ALLOW_ENCODED_SLASH
{@link ResourceConfig feature to enable encoded slashes in URIs.
|
Modifier and Type | Method and Description |
---|---|
static com.sun.grizzly.http.SelectorThread |
create(java.lang.String u)
Create a
SelectorThread that registers an Adapter that
in turn manages all root resource and provder classes found by searching the classes
referenced in the java classath. |
static com.sun.grizzly.http.SelectorThread |
create(java.lang.String u,
com.sun.grizzly.tcp.Adapter adapter)
Create a
SelectorThread that registers an Adapter that
in turn manages all root resource and provder classes found by searching the classes
referenced in the java classath. |
static com.sun.grizzly.http.SelectorThread |
create(java.lang.String u,
ResourceConfig rc)
Create a
SelectorThread that registers an Adapter that
in turn manages all root resource and provder classes declared by the
resource configuration. |
static com.sun.grizzly.http.SelectorThread |
create(java.lang.String u,
ResourceConfig rc,
IoCComponentProviderFactory factory)
Create a
SelectorThread that registers an Adapter that
in turn manages all root resource and provder classes declared by the
resource configuration. |
static com.sun.grizzly.http.SelectorThread |
create(java.net.URI u)
Create a
SelectorThread that registers an Adapter that
in turn manages all root resource and provder classes found by searching
the classes referenced in the java classath. |
static com.sun.grizzly.http.SelectorThread |
create(java.net.URI u,
com.sun.grizzly.tcp.Adapter adapter)
Create a
SelectorThread that registers an Adapter that
in turn manages all root resource and provder classes found by searching the classes
referenced in the java classath. |
static com.sun.grizzly.http.SelectorThread |
create(java.net.URI u,
ResourceConfig rc)
Create a
SelectorThread that registers an Adapter that
in turn manages all root resource and provder classes declared by the
resource configuration. |
static com.sun.grizzly.http.SelectorThread |
create(java.net.URI u,
ResourceConfig rc,
IoCComponentProviderFactory factory)
Create a
SelectorThread that registers an Adapter that
in turn manages all root resource and provder classes declared by the
resource configuration. |
public static final java.lang.String FEATURE_ALLOW_ENCODED_SLASH
public static com.sun.grizzly.http.SelectorThread create(java.lang.String u) throws java.io.IOException, java.lang.IllegalArgumentException
SelectorThread
that registers an Adapter
that
in turn manages all root resource and provder classes found by searching the classes
referenced in the java classath.
This implementation defers to the
ContainerFactory.createContainer(Class)
method for creating
an Adapter that manages the root resources.
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.java.io.IOException
- if an error occurs creating the container.java.lang.IllegalArgumentException
- if u
is nullpublic static com.sun.grizzly.http.SelectorThread create(java.net.URI u) throws java.io.IOException, java.lang.IllegalArgumentException
SelectorThread
that registers an Adapter
that
in turn manages all root resource and provder classes found by searching
the classes referenced in the java classath.
This implementation defers to the
ContainerFactory.createContainer(Class)
method for creating
an Adapter that manages the root resources.
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.java.io.IOException
- if an error occurs creating the container.java.lang.IllegalArgumentException
- if u
is nullpublic static com.sun.grizzly.http.SelectorThread create(java.lang.String u, ResourceConfig rc) throws java.io.IOException, java.lang.IllegalArgumentException
SelectorThread
that registers an Adapter
that
in turn manages all root resource and provder classes declared by the
resource configuration.
This implementation defers to the
ContainerFactory.createContainer(Class, ResourceConfig)
method
for creating an Adapter that manages the root resources.
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.rc
- the resource configuration.java.io.IOException
- if an error occurs creating the container.java.lang.IllegalArgumentException
- if u
is nullpublic static com.sun.grizzly.http.SelectorThread create(java.net.URI u, ResourceConfig rc) throws java.io.IOException, java.lang.IllegalArgumentException
SelectorThread
that registers an Adapter
that
in turn manages all root resource and provder classes declared by the
resource configuration.
This implementation defers to the
ContainerFactory.createContainer(Class, ResourceConfig)
method
for creating an Adapter that manages the root resources.
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.rc
- the resource configuration.java.io.IOException
- if an error occurs creating the container.java.lang.IllegalArgumentException
- if u
is nullpublic static com.sun.grizzly.http.SelectorThread create(java.lang.String u, ResourceConfig rc, IoCComponentProviderFactory factory) throws java.io.IOException, java.lang.IllegalArgumentException
SelectorThread
that registers an Adapter
that
in turn manages all root resource and provder classes declared by the
resource configuration.
This implementation defers to the
ContainerFactory.createContainer(Class, ResourceConfig, IoCComponentProviderFactory)
method
for creating an Adapter that manages the root resources.
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.rc
- the resource configuration.factory
- the IoC component provider factory the web application
delegates to for obtaining instances of resource and provider
classes. May be null if the web application is responsible for
instantiating resource and provider classes.java.io.IOException
- if an error occurs creating the container.java.lang.IllegalArgumentException
- if u
is nullpublic static com.sun.grizzly.http.SelectorThread create(java.net.URI u, ResourceConfig rc, IoCComponentProviderFactory factory) throws java.io.IOException, java.lang.IllegalArgumentException
SelectorThread
that registers an Adapter
that
in turn manages all root resource and provder classes declared by the
resource configuration.
This implementation defers to the
ContainerFactory.createContainer(Class, ResourceConfig, IoCComponentProviderFactory)
method
for creating an Adapter that manages the root resources.
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.rc
- the resource configuration.factory
- the IoC component provider factory the web application
delegates to for obtaining instances of resource and provider
classes. May be null if the web application is responsible for
instantiating resource and provider classes.java.io.IOException
- if an error occurs creating the container.java.lang.IllegalArgumentException
- if u
is nullpublic static com.sun.grizzly.http.SelectorThread create(java.lang.String u, com.sun.grizzly.tcp.Adapter adapter) throws java.io.IOException, java.lang.IllegalArgumentException
SelectorThread
that registers an Adapter
that
in turn manages all root resource and provder classes found by searching the classes
referenced in the java classath.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.adapter
- the Adapterjava.io.IOException
- if an error occurs creating the container.java.lang.IllegalArgumentException
- if u
is nullpublic static com.sun.grizzly.http.SelectorThread create(java.net.URI u, com.sun.grizzly.tcp.Adapter adapter) throws java.io.IOException, java.lang.IllegalArgumentException
SelectorThread
that registers an Adapter
that
in turn manages all root resource and provder classes found by searching the classes
referenced in the java classath.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 will be set as the resources context root
value, which must be an empty String or begin with a "/".
The URI query and fragment components are ignored.adapter
- the Adapterjava.io.IOException
- if an error occurs creating the container.java.lang.IllegalArgumentException
- if u
is null or the URI
path does not begin with a "/".Copyright © 2016 Oracle Corporation. All Rights Reserved.