java.lang.Object
com.sun.net.httpserver.HttpServer
org.eclipse.jetty.http.spi.JettyHttpServer
Jetty implementation of
HttpServer
.-
Constructor Summary
ConstructorsConstructorDescriptionJettyHttpServer
(org.eclipse.jetty.server.Server server, boolean shared) JettyHttpServer
(org.eclipse.jetty.server.Server server, boolean shared, org.eclipse.jetty.server.HttpConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(InetSocketAddress addr, int backlog) createContext
(String path) createContext
(String path, HttpHandler httpHandler) org.eclipse.jetty.server.HttpConfiguration
protected org.eclipse.jetty.server.Server
protected org.eclipse.jetty.server.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
public JettyHttpServer(org.eclipse.jetty.server.Server server, boolean shared) -
JettyHttpServer
public JettyHttpServer(org.eclipse.jetty.server.Server server, boolean shared, org.eclipse.jetty.server.HttpConfiguration configuration)
-
-
Method Details
-
getHttpConfiguration
public org.eclipse.jetty.server.HttpConfiguration getHttpConfiguration() -
bind
- Specified by:
bind
in classHttpServer
- Throws:
IOException
-
getServer
protected org.eclipse.jetty.server.Server getServer() -
newServerConnector
protected org.eclipse.jetty.server.ServerConnector newServerConnector(InetSocketAddress addr, int backlog) -
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
-