View Javadoc

1   package ca.uhn.hl7v2.util;
2   
3   import java.io.IOException;
4   import java.net.ServerSocket;
5   import java.net.Socket;
6   
7   /**
8    * Pluggable socket factory interface
9    */
10  public interface SocketFactory {
11  
12  	/**
13  	 * Create a standard client socket
14  	 */
15  	Socket createSocket() throws IOException;
16  	
17  	/**
18  	 * Create a TLS client socket
19  	 */
20  	Socket createTlsSocket() throws IOException;
21  	
22  	/**
23  	 * Create a standard server socket
24  	 */	
25  	ServerSocket createServerSocket() throws IOException;
26  	
27  	/**
28  	 * Create a TLS server socket
29  	 */
30  	ServerSocket createTlsServerSocket() throws IOException;
31  	
32  }