|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.jdkhttp.JdkHttpServerFactory
public class JdkHttpServerFactory
Factory for creating JDK HttpServer instances adapted to
the ApplicationHandler.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||