コード例 #1
0
 @Override
 public boolean isIntegral(Request request) {
   if (getSslContextFactory() != null) {
     int integralPort = getIntegralPort();
     return integralPort == 0 || integralPort == request.getServerPort();
   }
   return super.isIntegral(request);
 }
コード例 #2
0
 @Override
 public boolean isConfidential(Request request) {
   if (getSslContextFactory() != null) {
     int confidentialPort = getConfidentialPort();
     return confidentialPort == 0 || confidentialPort == request.getServerPort();
   }
   return super.isConfidential(request);
 }