Coverage Report - ca.uhn.hl7v2.hoh.sockets.ISocketFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
ISocketFactory
N/A
N/A
1
 
 1  
 package ca.uhn.hl7v2.hoh.sockets;
 2  
 
 3  
 import java.io.IOException;
 4  
 import java.net.ServerSocket;
 5  
 import java.net.Socket;
 6  
 
 7  
 /**
 8  
  * Pluggable interface for creating new sockets
 9  
  */
 10  
 public interface ISocketFactory {
 11  
 
 12  
         /**
 13  
          * Creates a new client socket and returns it
 14  
          */
 15  
         Socket createClientSocket() throws IOException;
 16  
         
 17  
         /**
 18  
          * Creates a new server socket and returns it
 19  
          * @throws IOException 
 20  
          */
 21  
         ServerSocket createServerSocket() throws IOException;
 22  
         
 23  
 }