public class JettyHttpServer
extends com.sun.net.httpserver.HttpServer
HttpServer
.Constructor and Description |
---|
JettyHttpServer(Server server,
boolean shared) |
JettyHttpServer(Server server,
boolean shared,
HttpConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
bind(InetSocketAddress addr,
int backlog) |
com.sun.net.httpserver.HttpContext |
createContext(String path) |
com.sun.net.httpserver.HttpContext |
createContext(String path,
com.sun.net.httpserver.HttpHandler httpHandler) |
InetSocketAddress |
getAddress() |
Executor |
getExecutor() |
HttpConfiguration |
getHttpConfiguration() |
protected ServerConnector |
newServerConnector(InetSocketAddress addr,
int backlog) |
void |
removeContext(com.sun.net.httpserver.HttpContext context) |
void |
removeContext(String path) |
void |
setExecutor(Executor executor) |
void |
start() |
void |
stop(int delay) |
public JettyHttpServer(Server server, boolean shared)
public JettyHttpServer(Server server, boolean shared, HttpConfiguration configuration)
public HttpConfiguration getHttpConfiguration()
public void bind(InetSocketAddress addr, int backlog) throws IOException
bind
in class com.sun.net.httpserver.HttpServer
IOException
protected ServerConnector newServerConnector(InetSocketAddress addr, int backlog)
public InetSocketAddress getAddress()
getAddress
in class com.sun.net.httpserver.HttpServer
public void start()
start
in class com.sun.net.httpserver.HttpServer
public void setExecutor(Executor executor)
setExecutor
in class com.sun.net.httpserver.HttpServer
public Executor getExecutor()
getExecutor
in class com.sun.net.httpserver.HttpServer
public void stop(int delay)
stop
in class com.sun.net.httpserver.HttpServer
public com.sun.net.httpserver.HttpContext createContext(String path, com.sun.net.httpserver.HttpHandler httpHandler)
createContext
in class com.sun.net.httpserver.HttpServer
public com.sun.net.httpserver.HttpContext createContext(String path)
createContext
in class com.sun.net.httpserver.HttpServer
public void removeContext(String path) throws IllegalArgumentException
removeContext
in class com.sun.net.httpserver.HttpServer
IllegalArgumentException
public void removeContext(com.sun.net.httpserver.HttpContext context)
removeContext
in class com.sun.net.httpserver.HttpServer
Copyright © 1995-2015 Webtide. All Rights Reserved.