Package | Description |
---|---|
com.sun.net.httpserver |
Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
|
com.sun.net.httpserver.spi |
Provides a pluggable service provider interface, which allows the HTTP server
implementation to be replaced with other implementations.
|
Modifier and Type | Class and Description |
---|---|
class |
HttpsServer
This class is an extension of
HttpServer which provides
support for HTTPS. |
Modifier and Type | Method and Description |
---|---|
static HttpServer |
HttpServer.create()
creates a HttpServer instance which is initially not bound to any local address/port.
|
static HttpServer |
HttpServer.create(InetSocketAddress addr,
int backlog)
Create a
HttpServer instance which will bind to the
specified InetSocketAddress (IP address and port number)
A maximum backlog can also be specified. |
abstract HttpServer |
HttpContext.getServer()
returns the server this context was created with
|
Modifier and Type | Method and Description |
---|---|
abstract HttpServer |
HttpServerProvider.createHttpServer(InetSocketAddress addr,
int backlog)
creates a HttpServer from this provider
|
Copyright © 2005, 2015, Oracle and/or its affiliates. All rights reserved.