|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.ws.rest.api.container.grizzly.GrizzlyServerFactory
public final class GrizzlyServerFactory
Factory for creating and starting Grizzly SelectorThread
instances.
Method Summary | |
---|---|
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 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 classes found by searching the classes
referenced in the java classath. |
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 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 classes found by searching the classes
referenced in the java classath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static com.sun.grizzly.http.SelectorThread create(java.lang.String u) throws java.io.IOException
SelectorThread
that registers an Adapter
that
in turn manages all root resource classes found by searching the classes
referenced in the java classath.
To avoid potential race conditions with the returned
SelectorThread
instance it is recommended to sleep for a
period of time after this method has been invoked to ensure the
SelectorThread
has had enough time to intialize to the correct
state.
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
public static com.sun.grizzly.http.SelectorThread create(java.net.URI u) throws java.io.IOException
SelectorThread
that registers an Adapter
that
in turn manages all root resource classes found by searching the classes
referenced in the java classath.
To avoid potential race conditions with the returned
SelectorThread
instance it is recommended to sleep for a
period of time after this method has been invoked to ensure the
SelectorThread
has had enough time to intialize to the correct
state.
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
public static com.sun.grizzly.http.SelectorThread create(java.lang.String u, com.sun.grizzly.tcp.Adapter adapter) throws java.io.IOException
SelectorThread
that registers an Adapter
that
in turn manages all root resource classes found by searching the classes
referenced in the java classath.
To avoid potential race conditions with the returned
SelectorThread
instance it is recommended to sleep for a
period of time after this method has been invoked to ensure the
SelectorThread
has had enough time to intialize to the correct
state.
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 Adapter
java.io.IOException
public static com.sun.grizzly.http.SelectorThread create(java.net.URI u, com.sun.grizzly.tcp.Adapter adapter) throws java.io.IOException
SelectorThread
that registers an Adapter
that
in turn manages all root resource classes found by searching the classes
referenced in the java classath.
To avoid potential race conditions with the returned
SelectorThread
instance it is recommended to sleep for a
period of time after this method has been invoked to ensure the
SelectorThread
has had enough time to intialize to the correct
state.
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 Adapter
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |