Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
StandardSocketFactory |
|
| 1.0;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 | } |