java.lang.Object
com.sun.net.httpserver.HttpServer
com.sun.net.httpserver.HttpsServer
org.eclipse.jetty.http.spi.JettyHttpServer
-
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
void
removeContext
(HttpContext context) void
removeContext
(String path) void
setExecutor
(Executor executor) void
void
start()
void
stop
(int delay) Methods inherited from class com.sun.net.httpserver.HttpsServer
create, 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() -
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
-
setHttpsConfigurator
- Specified by:
setHttpsConfigurator
in classHttpsServer
-
getHttpsConfigurator
- Specified by:
getHttpsConfigurator
in classHttpsServer
-