Coverage Report - ca.uhn.hl7v2.hoh.sockets.StandardSocketFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
StandardSocketFactory
100%
3/3
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  
  * Socket Factory which returns a normal, non encrypted TCP socket
 9  
  */
 10  105
 public class StandardSocketFactory implements ISocketFactory {
 11  
 
 12  
         public Socket createClientSocket() {
 13  95
                 return new Socket();
 14  
         }
 15  
 
 16  
         public ServerSocket createServerSocket() throws IOException {
 17  85
                 return new ServerSocket();
 18  
         }
 19  
 
 20  
 }