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.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpsServer | Returns: an instance ofHttpsServerHides com. Creates a |
| public static HttpsServer | Returns: an instance ofHttpsServerthe address to listen on, if addr, int null then
bind(InetSocketAddress, int) must be called to set
the addressthe socket backlog. If this value is less than or equal to
zero, then a system default value is used. backlog)Hides com. Create a |
| public static HttpsServer | Returns: the HttpsServerthe address to listen on, if addr, int null then
bind must be called to set the addressthe socket backlog. If this value is less than or
equal to zero, then a system default value is used backlog, String the root URI path of the context, must be absolute path, HttpHandler the HttpHandler for the context handler, Filter... the Filters for the context, optional filters)Hides com. Creates an |
| public abstract HttpsConfigurator | Returns: theHttpsConfigurator for this server, or null if
not setGets this server's |
| public abstract void | setHttpsConfigurator(HttpsConfigurator
the config)HttpsConfigurator to setSets this server's |
| HttpsServer | back to summary |
|---|---|
| protected HttpsServer() Constructor for subclasses to call. | |
| create | back to summary |
|---|---|
| public static HttpsServer create() throws IOException Hides com. Creates a
| |
| create | back to summary |
|---|---|
| public static HttpsServer create(InetSocketAddress addr, int backlog) throws IOException Hides com. Create a
| |
| create | back to summary |
|---|---|
| public static HttpsServer create(InetSocketAddress addr, int backlog, String path, HttpHandler handler, Filter... filters) throws IOException Hides com. Creates an The server is created with an initial context that maps the
URI The server instance will bind to the given
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 The server must have an HttpsConfigurator established with
| |
| getHttpsConfigurator | back to summary |
|---|---|
| public abstract HttpsConfigurator getHttpsConfigurator() Gets this server's
| |
| setHttpsConfigurator | back to summary |
|---|---|
| public abstract void setHttpsConfigurator(HttpsConfigurator config) Sets this server's
| |