< prev index next >
src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpsConfigurator.java
Print this page
*** 40,51 ****
* https connection on a HttpsServer. Applications need to override
* the {@link #configure(HttpsParameters)} method in order to change
* the default configuration.
* <p>
* The following <a name="example">example</a> shows how this may be done:
! * <p>
! * <pre><blockquote>
* SSLContext sslContext = SSLContext.getInstance (....);
* HttpsServer server = HttpsServer.create();
*
* server.setHttpsConfigurator (new HttpsConfigurator(sslContext) {
* public void configure (HttpsParameters params) {
--- 40,51 ----
* https connection on a HttpsServer. Applications need to override
* the {@link #configure(HttpsParameters)} method in order to change
* the default configuration.
* <p>
* The following <a name="example">example</a> shows how this may be done:
! *
! * <blockquote><pre>
* SSLContext sslContext = SSLContext.getInstance (....);
* HttpsServer server = HttpsServer.create();
*
* server.setHttpsConfigurator (new HttpsConfigurator(sslContext) {
* public void configure (HttpsParameters params) {
*** 62,72 ****
* }
*
* params.setSSLParameters(sslparams);
* }
* });
! * </blockquote></pre>
* @since 1.6
*/
@jdk.Exported
public class HttpsConfigurator {
--- 62,72 ----
* }
*
* params.setSSLParameters(sslparams);
* }
* });
! * </pre></blockquote>
* @since 1.6
*/
@jdk.Exported
public class HttpsConfigurator {
*** 100,110 ****
* {@link HttpsParameters#setSSLParameters(SSLParameters)}
* in order to set the SSL parameters for the connection.
* <p>
* The default implementation of this method uses the
* SSLParameters returned from <p>
! * <code>getSSLContext().getDefaultSSLParameters()</code>
* <p>
* configure() may be overridden in order to modify this behavior.
* See, the example <a href="#example">above</a>.
* @param params the HttpsParameters to be configured.
*
--- 100,110 ----
* {@link HttpsParameters#setSSLParameters(SSLParameters)}
* in order to set the SSL parameters for the connection.
* <p>
* The default implementation of this method uses the
* SSLParameters returned from <p>
! * {@code getSSLContext().getDefaultSSLParameters()}
* <p>
* configure() may be overridden in order to modify this behavior.
* See, the example <a href="#example">above</a>.
* @param params the HttpsParameters to be configured.
*
< prev index next >