1 2 3 27 28 29 package org.apache.catalina.net; 30 31 32 import java.io.IOException ; 33 import java.net.InetAddress ; 34 import java.net.ServerSocket ; 35 import java.security.KeyStoreException ; 36 import java.security.NoSuchAlgorithmException ; 37 import java.security.UnrecoverableKeyException ; 38 import java.security.KeyManagementException ; 39 import java.security.cert.CertificateException ; 40 import org.apache.catalina.net.ServerSocketFactory; 41 42 43 50 51 public final class DefaultServerSocketFactory implements ServerSocketFactory { 52 53 54 56 57 76 public ServerSocket createSocket (int port) 77 throws IOException , KeyStoreException , NoSuchAlgorithmException , 78 CertificateException , UnrecoverableKeyException , 79 KeyManagementException { 80 81 return (new ServerSocket (port)); 82 83 } 84 85 86 106 public ServerSocket createSocket (int port, int backlog) 107 throws IOException , KeyStoreException , NoSuchAlgorithmException , 108 CertificateException , UnrecoverableKeyException , 109 KeyManagementException { 110 111 return (new ServerSocket (port, backlog)); 112 113 } 114 115 116 137 public ServerSocket createSocket (int port, int backlog, 138 InetAddress ifAddress) 139 throws IOException , KeyStoreException , NoSuchAlgorithmException , 140 CertificateException , UnrecoverableKeyException , 141 KeyManagementException { 142 143 return (new ServerSocket (port, backlog, ifAddress)); 144 145 } 146 147 148 } 149 | Popular Tags |