Interface EmbeddedWebServer.Configurator

Enclosing class:
EmbeddedWebServer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EmbeddedWebServer.Configurator
Configure an HTTPS server. This interface is provided because EmbeddedWebServer, when configured for HTTPS, does not provide direct access to its HttpsServer, but will create an HttpsConfigurator and this interface can be used to implement its HttpsConfigurator.configure(HttpsParameters) method.

Typically, an implementation of the configure(javax.net.ssl.SSLContext, com.sun.net.httpserver.HttpsParameters) method will contain the statement


 SSLParameters sslparam = context.getDefaultSSLParameters();
 
The SSL parameters sslparamwill be modified as desired and finally the method will call

 params.setSSLParameters(sslparam)
 
The configuration can be changed for individual clients.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Configure an https server.