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
ConstructorDescriptionJettyHttpServer
(Server server, boolean shared) JettyHttpServer
(Server server, boolean shared, HttpConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(InetSocketAddress addr, int backlog) createContext
(String path) createContext
(String path, HttpHandler httpHandler) protected Server
protected ServerConnector
newServerConnector
(InetSocketAddress addr, int backlog) void
removeContext
(HttpContext context) void
removeContext
(String path) void
setExecutor
(Executor executor) void
start()
void
stop
(int delay) Methods inherited from class com.sun.net.httpserver.HttpServer
create, create
-
Constructor Details
-
JettyHttpServer
-
JettyHttpServer
-
-
Method Details
-
getHttpConfiguration
-
bind
- Specified by:
bind
in classHttpServer
- Throws:
IOException
-
getServer
-
newServerConnector
-
getAddress
- Specified by:
getAddress
in classHttpServer
-
start
public void start()- Specified by:
start
in classHttpServer
-
setExecutor
- Specified by:
setExecutor
in classHttpServer
-
getExecutor
- Specified by:
getExecutor
in classHttpServer
-
stop
public void stop(int delay) - Specified by:
stop
in classHttpServer
-
createContext
- Specified by:
createContext
in classHttpServer
-
createContext
- Specified by:
createContext
in classHttpServer
-
removeContext
- Specified by:
removeContext
in classHttpServer
- Throws:
IllegalArgumentException
-
removeContext
- Specified by:
removeContext
in classHttpServer
-