org.glassfish.jersey.jdkhttp
Class JdkHttpServerFactory

java.lang.Object
  extended by org.glassfish.jersey.jdkhttp.JdkHttpServerFactory

public class JdkHttpServerFactory
extends Object

Factory for creating JDK HttpServer instances adapted to the Jersey Application.

Author:
Miroslav Fuksa (miroslav.fuksa at oracle.com)

Method Summary
static com.sun.net.httpserver.HttpServer createHttpServer(URI uri, Application application)
          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

createHttpServer

public static com.sun.net.httpserver.HttpServer createHttpServer(URI uri,
                                                                 Application application)
                                                          throws ProcessingException
Creates and starts the JDK HttpServer with the Jersey Application deployed on the given URI.

The returned JDK HttpServer is started.

Parameters:
uri - The uri on which the Jersey Application will be deployed.
application - The Jersey Application to be deployed.
Returns:
Newly created HttpServer.
Throws:
ProcessingException - Thrown when problems during server creation occurs.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.