Package org.eclipse.jetty.http.spi
Class JettyHttpServer
java.lang.Object
com.sun.net.httpserver.HttpServer
org.eclipse.jetty.http.spi.JettyHttpServer
Jetty implementation of
HttpServer.-
Constructor Summary
ConstructorsConstructorDescriptionJettyHttpServer(Server server, boolean shared) JettyHttpServer(Server server, boolean shared, HttpConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(InetSocketAddress addr, int backlog) createContext(String path) createContext(String path, HttpHandler httpHandler) protected Serverprotected ServerConnectornewServerConnector(InetSocketAddress addr, int backlog) voidremoveContext(HttpContext context) voidremoveContext(String path) voidsetExecutor(Executor executor) voidstart()voidstop(int delay) Methods inherited from class com.sun.net.httpserver.HttpServer
create, create
-
Constructor Details
-
JettyHttpServer
-
JettyHttpServer
-
-
Method Details
-
getHttpConfiguration
-
bind
- Specified by:
bindin classHttpServer- Throws:
IOException
-
getServer
-
newServerConnector
-
getAddress
- Specified by:
getAddressin classHttpServer
-
start
public void start()- Specified by:
startin classHttpServer
-
setExecutor
- Specified by:
setExecutorin classHttpServer
-
getExecutor
- Specified by:
getExecutorin classHttpServer
-
stop
public void stop(int delay) - Specified by:
stopin classHttpServer
-
createContext
- Specified by:
createContextin classHttpServer
-
createContext
- Specified by:
createContextin classHttpServer
-
removeContext
- Specified by:
removeContextin classHttpServer- Throws:
IllegalArgumentException
-
removeContext
- Specified by:
removeContextin classHttpServer
-