/** * Returns a copy of the environment's default socket factory. */ public static synchronized ServerSocketFactory getDefault () { // // optimize typical case: no synch needed // if (theFactory == null) { // // Different implementations of this method could // work rather differently. For example, driving // this from a system property, or using a different // implementation than JavaSoft's. // theFactory = new DefaultServerSocketFactory (); } try { return (ServerSocketFactory) theFactory.clone (); } catch (CloneNotSupportedException e) { throw new RuntimeException (e.getMessage ()); } }
/** * Returns a copy of the environment's default socket factory. */ public static synchronized ServerSocketFactory getDefault () { // // optimize typical case: no synch needed // if (theFactory == null) { // // Different implementations of this method could // work rather differently. For example, driving // this from a system property, or using a different // implementation than JavaSoft's. // theFactory = new DefaultServerSocketFactory (); } try { return (ServerSocketFactory) theFactory.clone (); } catch (CloneNotSupportedException e) { throw new RuntimeException (e.getMessage ()); } }
/** * Returns a copy of the environment's default socket factory. */ public static synchronized ServerSocketFactory getDefault () { // // optimize typical case: no synch needed // if (theFactory == null) { // // Different implementations of this method could // work rather differently. For example, driving // this from a system property, or using a different // implementation than JavaSoft's. // theFactory = new DefaultServerSocketFactory (); } try { return (ServerSocketFactory) theFactory.clone (); } catch (CloneNotSupportedException e) { throw new RuntimeException (e.getMessage ()); } }
handler.getSslImplementation().getServerSocketFactory(this); } else { serverSocketFactory = new DefaultServerSocketFactory(this);
handler.getSslImplementation().getServerSocketFactory(this); } else { serverSocketFactory = new DefaultServerSocketFactory(this);
handler.getSslImplementation().getServerSocketFactory(this); } else { serverSocketFactory = new DefaultServerSocketFactory(this);
handler.getSslImplementation().getServerSocketFactory(this); } else { serverSocketFactory = new DefaultServerSocketFactory(this);