Class JettyHttpServer
java.lang.Object
com.sun.net.httpserver.HttpServer
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 TypeMethodDescriptionvoidbind(InetSocketAddress addr, int backlog) createContext(String path) createContext(String path, HttpHandler httpHandler) org.eclipse.jetty.server.HttpConfigurationprotected org.eclipse.jetty.server.Serverprotected org.eclipse.jetty.server.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, 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:
bindin 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:
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
-