org.glassfish.jersey.server.ContainerFactory Java Examples
The following examples show how to use
org.glassfish.jersey.server.ContainerFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HttpServerFactory.java From metrics with Apache License 2.0 | 5 votes |
/** * Creates and starts the {@link HttpServer JDK HttpServer} with the Jersey * application deployed on the given {@link URI}, and bind to given address */ public static HttpServer createHttpServer(final URI uri, final String bindingHost, final int corePoolSize, final int maxPoolSize, final long keepAliveTime, final int maxQueueSize, final ResourceConfig configuration) throws ProcessingException { final HttpHandlerContainer handler = ContainerFactory.createContainer(HttpHandlerContainer.class, configuration); return createHttpServer(uri, bindingHost, handler, corePoolSize, maxPoolSize, keepAliveTime, maxQueueSize); }