예제 #1
0
 @Override
 public void customize(final EndPoint endpoint, final Request request) throws IOException {
   if (this.forceHttps) {
     request.setScheme("https");
     super.customize(endpoint, request);
   }
 }
 @Override
 public void customize(EndPoint endPoint, Request request) throws IOException {
   super.customize(endPoint, request);
   if (getSslContextFactory() != null) request.setScheme(HttpSchemes.HTTPS);
 }