public class JdkHttpServerFactory extends Object
JDK HttpServer instances adapted to
the ApplicationHandler.| Modifier and Type | Method and Description |
|---|---|
static com.sun.net.httpserver.HttpServer |
createHttpServer(URI uri,
ApplicationHandler appHandler)
Creates and starts the
JDK HttpServer with the
Jersey application deployed on the given URI. |
static com.sun.net.httpserver.HttpServer |
createHttpServer(URI uri,
ResourceConfig configuration)
Creates and starts the
JDK HttpServer with the Jersey
application deployed on the given URI. |
public static com.sun.net.httpserver.HttpServer createHttpServer(URI uri, ResourceConfig configuration) throws javax.ws.rs.ProcessingException
JDK HttpServer with the Jersey
application deployed on the given URI.
The returned JDK HttpServer is started.
uri - The uri on which the Jersey application will be deployed.configuration - The Jersey server-side application configuration.HttpServer.javax.ws.rs.ProcessingException - Thrown when problems during server creation
occurs.public static com.sun.net.httpserver.HttpServer createHttpServer(URI uri, ApplicationHandler appHandler) throws javax.ws.rs.ProcessingException
JDK HttpServer with the
Jersey application deployed on the given URI.
The returned JDK HttpServer is started.
uri - The uri on which the Jersey application will be deployed.appHandler - The Jersey server-side application handler.HttpServer.javax.ws.rs.ProcessingException - Thrown when problems during server creation
occurs.Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.