| Modifier and Type | Field and Description |
|---|---|
| pack-priv ServerImpl |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(InetSocketAddress addr, int backlog)
Implements abstract com. Binds a currently unbound |
| public HttpContextImpl | createContext(String path, HttpHandler handler)
Implements abstract com. Creates a |
| public HttpContextImpl | createContext(String path)
Implements abstract com. Creates a HttpContext without initially specifying a handler. |
| public InetSocketAddress | getAddress()
Implements abstract com. Returns the address this server is listening on |
| public Executor | getExecutor()
Implements abstract com. Returns this server's |
| public void | removeContext(String path)
Implements abstract com. Removes the context identified by the given path from the server. |
| public void | removeContext(HttpContext context)
Implements abstract com. Removes the given context from the server. |
| public void | setExecutor(Executor executor)
Implements abstract com. Sets this server's |
| public void | start()
Implements abstract com. Starts this server in a new background thread. |
| public void | stop(int delay)
Implements abstract com. Stops this server by closing the listening socket and disallowing any new exchanges from being processed. |
| server | back to summary |
|---|---|
| pack-priv ServerImpl server | |
| HttpServerImpl | back to summary |
|---|---|
| pack-priv HttpServerImpl() throws IOException | |
| HttpServerImpl | back to summary |
|---|---|
| pack-priv HttpServerImpl(InetSocketAddress addr, int backlog) throws IOException | |
| bind | back to summary |
|---|---|
| public void bind(InetSocketAddress addr, int backlog) throws IOException Implements abstract com. Doc from com. Binds a currently unbound | |
| createContext | back to summary |
|---|---|
| public HttpContextImpl createContext(String path, HttpHandler handler) Implements abstract com. Doc from com. Creates a The path specifies the root URI path for this context. The first character of path must be '/'. The class overview describes how incoming request URIs are mapped to HttpContext instances. | |
| createContext | back to summary |
|---|---|
| public HttpContextImpl createContext(String path) Implements abstract com. Doc from com. Creates a HttpContext without initially specifying a handler. The handler
must later be specified using The path specifies the root URI path for this context. The first character of path must be '/'. The class overview describes how incoming request URIs are
mapped to | |
| getAddress | back to summary |
|---|---|
| public InetSocketAddress getAddress() Implements abstract com. Doc from com. Returns the address this server is listening on | |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor() Implements abstract com. Doc from com. Returns this server's | |
| removeContext | back to summary |
|---|---|
| public void removeContext(String path) throws IllegalArgumentException Implements abstract com. Doc from com. Removes the context identified by the given path from the server. Removing a context does not affect exchanges currently being processed but prevents new ones from being accepted.
| |
| removeContext | back to summary |
|---|---|
| public void removeContext(HttpContext context) throws IllegalArgumentException Implements abstract com. Doc from com. Removes the given context from the server. Removing a context does not affect exchanges currently being processed but prevents new ones from being accepted. | |
| setExecutor | back to summary |
|---|---|
| public void setExecutor(Executor executor) Implements abstract com. Doc from com. Sets this server's | |
| start | back to summary |
|---|---|
| public void start() Implements abstract com. Doc from com. Starts this server in a new background thread. The background thread inherits the priority, thread group and context class loader of the caller. | |
| stop | back to summary |
|---|---|
| public void stop(int delay) Implements abstract com. Doc from com. Stops this server by closing the listening socket and disallowing
any new exchanges from being processed. The method will then block
until all current exchange handlers have completed or else when
approximately delay seconds have elapsed (whichever happens
sooner). Then, all open TCP connections are closed, the background
thread created by | |