|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.simple.container.SimpleServerFactory
public final class SimpleServerFactory
Factory for creating and starting Simple server containers. This returns
a handle to the started server as Closeable
instances, which allows
the server to be stopped by invoking the Closeable.close()
method.
To start the server in HTTPS mode an SSLContext
can be provided.
This will be used to decrypt and encrypt information sent over the
connected TCP socket channel.
Method Summary | |
---|---|
static Closeable |
create(String address)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath. |
static Closeable |
create(String address,
org.simpleframework.http.core.Container container)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath. |
static Closeable |
create(String address,
ResourceConfig config)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes declared by the
resource configuration. |
static Closeable |
create(String address,
ResourceConfig config,
IoCComponentProviderFactory factory)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes declared by the
resource configuration. |
static Closeable |
create(String address,
SSLContext context)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath. |
static Closeable |
create(String address,
SSLContext context,
org.simpleframework.http.core.Container container)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath. |
static Closeable |
create(String address,
SSLContext context,
ResourceConfig config)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes declared by the
resource configuration. |
static Closeable |
create(String address,
SSLContext context,
ResourceConfig config,
IoCComponentProviderFactory factory)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes declared by the
resource configuration. |
static Closeable |
create(URI address)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes found by searching
the classes referenced in the java classpath. |
static Closeable |
create(URI address,
org.simpleframework.http.core.Container container)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath. |
static Closeable |
create(URI address,
ResourceConfig config)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes declared by the
resource configuration. |
static Closeable |
create(URI address,
ResourceConfig config,
IoCComponentProviderFactory factory)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes declared by the
resource configuration. |
static Closeable |
create(URI address,
SSLContext context)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes found by searching
the classes referenced in the java classpath. |
static Closeable |
create(URI address,
SSLContext context,
org.simpleframework.http.core.Container container)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath. |
static Closeable |
create(URI address,
SSLContext context,
ResourceConfig config)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes declared by the
resource configuration. |
static Closeable |
create(URI address,
SSLContext context,
ResourceConfig config,
IoCComponentProviderFactory factory)
Create a Closeable that registers an Container that
in turn manages all root resource and provder classes declared by the
resource configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Closeable create(String address) throws IOException, IllegalArgumentException
Closeable
that registers an Container
that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath.
This implementation defers to the
ContainerFactory.createContainer(Class)
method for creating
an Container that manages the root resources.
address
- 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 address
is nullpublic static Closeable create(String address, SSLContext context) throws IOException, IllegalArgumentException
Closeable
that registers an Container
that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath.
This implementation defers to the
ContainerFactory.createContainer(Class)
method for creating
an Container that manages the root resources.
address
- the URI to create the http server. The URI scheme must be
equal to "https". The URI user information and host
are ignored If the URI port is not present then port 143 will be
used. The URI path, query and fragment components are ignored.context
- this is the SSL context used for SSL connections
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(URI address) throws IOException, IllegalArgumentException
Closeable
that registers an Container
that
in turn manages all root resource and provder classes found by searching
the classes referenced in the java classpath.
This implementation defers to the
ContainerFactory.createContainer(Class)
method for creating
an Container that manages the root resources.
address
- 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 address
is nullpublic static Closeable create(URI address, SSLContext context) throws IOException, IllegalArgumentException
Closeable
that registers an Container
that
in turn manages all root resource and provder classes found by searching
the classes referenced in the java classpath.
This implementation defers to the
ContainerFactory.createContainer(Class)
method for creating
an Container that manages the root resources.
address
- the URI to create the http server. The URI scheme must be
equal to "https". The URI user information and host
are ignored If the URI port is not present then port 143 will be
used. The URI path, query and fragment components are ignored.context
- this is the SSL context used for SSL connections
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(String address, ResourceConfig config) throws IOException, IllegalArgumentException
Closeable
that registers an Container
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 Container that manages the root resources.
address
- 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.config
- the resource configuration.
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(String address, SSLContext context, ResourceConfig config) throws IOException, IllegalArgumentException
Closeable
that registers an Container
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 Container that manages the root resources.
address
- the URI to create the http server. The URI scheme must be
equal to "https". The URI user information and host
are ignored If the URI port is not present then port 143 will be
used. The URI path, query and fragment components are ignored.context
- this is the SSL context used for SSL connections
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(URI address, ResourceConfig config) throws IOException, IllegalArgumentException
Closeable
that registers an Container
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 Container that manages the root resources.
address
- 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.config
- the resource configuration.
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(URI address, SSLContext context, ResourceConfig config) throws IOException, IllegalArgumentException
Closeable
that registers an Container
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 Container that manages the root resources.
address
- the URI to create the http server. The URI scheme must be
equal to "https". The URI user information and host
are ignored If the URI port is not present then port 143 will be
used. The URI path, query and fragment components are ignored.context
- this is the SSL context used for SSL connectionsconfig
- the resource configuration.
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(String address, ResourceConfig config, IoCComponentProviderFactory factory) throws IOException, IllegalArgumentException
Closeable
that registers an Container
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 Container that manages the root resources.
address
- 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.config
- 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.
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(String address, SSLContext context, ResourceConfig config, IoCComponentProviderFactory factory) throws IOException, IllegalArgumentException
Closeable
that registers an Container
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 Container that manages the root resources.
address
- the URI to create the http server. The URI scheme must be
equal to "https". The URI user information and host
are ignored If the URI port is not present then port 143 will be
used. The URI path, query and fragment components are ignored.context
- this is the SSL context used for SSL connectionsconfig
- 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.
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(URI address, ResourceConfig config, IoCComponentProviderFactory factory) throws IOException, IllegalArgumentException
Closeable
that registers an Container
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 Container that manages the root resources.
address
- 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.config
- 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.
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(URI address, SSLContext context, ResourceConfig config, IoCComponentProviderFactory factory) throws IOException, IllegalArgumentException
Closeable
that registers an Container
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 Container that manages the root resources.
address
- the URI to create the http server. The URI scheme must be
equal to "https". The URI user information and host
are ignored If the URI port is not present then port 143 will be
used. The URI path, query and fragment components are ignored.context
- this is the SSL context used for SSL connectionsconfig
- 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.
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(String address, org.simpleframework.http.core.Container container) throws IOException, IllegalArgumentException
Closeable
that registers an Container
that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath.
address
- 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.container
- the container that handles all HTTP requests
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(String address, SSLContext context, org.simpleframework.http.core.Container container) throws IOException, IllegalArgumentException
Closeable
that registers an Container
that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath.
address
- the URI to create the http server. The URI scheme must be
equal to "https". The URI user information and host
are ignored If the URI port is not present then port 143 will be
used. The URI path, query and fragment components are ignored.context
- this is the SSL context used for SSL connectionscontainer
- the container that handles all HTTP requests
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(URI address, org.simpleframework.http.core.Container container) throws IOException, IllegalArgumentException
Closeable
that registers an Container
that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath.
address
- 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.container
- the container that handles all HTTP requests
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is nullpublic static Closeable create(URI address, SSLContext context, org.simpleframework.http.core.Container container) throws IOException, IllegalArgumentException
Closeable
that registers an Container
that
in turn manages all root resource and provder classes found by searching the
classes referenced in the java classpath.
address
- the URI to create the http server. The URI scheme must be
equal to "https". The URI user information and host
are ignored If the URI port is not present then port 143 will be
used. The URI path, query and fragment components are ignored.context
- this is the SSL context used for SSL connectionscontainer
- the container that handles all HTTP requests
IOException
- if an error occurs creating the container.
IllegalArgumentException
- if address
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |