java.lang.Object | ||
↳ | com.sun.net.httpserver.HttpServer | |
↳ | com.sun.net.httpserver.HttpsServer |
![]() |
This class is an extension of HttpServer
which provides
support for HTTPS.
A HttpsServer must have an associated HttpsConfigurator
object
which is used to establish the SSL configuration for the SSL connections.
All other configuration is the same as for HttpServer.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
creates a HttpsServer instance which is initially not bound to any local address/port.
| |||||||||||
Create a
HttpsServer instance which will bind to the
specified InetSocketAddress (IP address and port number)
A maximum backlog can also be specified. | |||||||||||
Gets this server's
HttpsConfigurator object, if it has been set. | |||||||||||
Sets this server's
HttpsConfigurator object. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
creates a HttpsServer instance which is initially not bound to any local address/port.
The HttpsServer is acquired from the currently installed HttpServerProvider
The server must be bound using bind(InetSocketAddress, int)
before it can be used.
The server must also have a HttpsConfigurator established with setHttpsConfigurator(HttpsConfigurator)
IOException |
---|
Create a HttpsServer
instance which will bind to the
specified InetSocketAddress
(IP address and port number)
A maximum backlog can also be specified. This is the maximum number of
queued incoming connections to allow on the listening socket.
Queued TCP connections exceeding this limit may be rejected by the TCP implementation.
The HttpsServer is acquired from the currently installed HttpServerProvider
The server must have a HttpsConfigurator established with setHttpsConfigurator(HttpsConfigurator)
addr | the address to listen on, if null then bind() must be called
to set the address |
---|---|
backlog | the socket backlog. If this value is less than or equal to zero, then a system default value is used. |
BindException | if the server cannot bind to the requested address, or if the server is already bound. |
---|---|
IOException |
Gets this server's HttpsConfigurator
object, if it has been set.
null
if not set.
Sets this server's HttpsConfigurator
object.
config | the HttpsConfigurator to set |
---|
NullPointerException | if config is null. |
---|