1 package ca.uhn.hl7v2.hoh.hapi.client;
2
3 import java.net.URL;
4
5 import ca.uhn.hl7v2.hoh.api.IClientSimple;
6 import ca.uhn.hl7v2.hoh.raw.client.HohRawClientSimple;
7 import ca.uhn.hl7v2.parser.Parser;
8
9 public class HohClientSimple extends AbstractClient<HohRawClientSimple> implements IClientSimple {
10
11
12
13
14
15
16
17
18
19
20
21 public HohClientSimple(String theHost, int thePort, String theUriPath) {
22 super(new HohRawClientSimple(theHost, thePort, theUriPath), null);
23 }
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 public HohClientSimple(String theHost, int thePort, String theUriPath, Parser theParser) {
40 super(new HohRawClientSimple(theHost, thePort, theUriPath), theParser);
41 }
42
43
44
45
46
47
48
49 public HohClientSimple(URL theUrl) {
50 super(new HohRawClientSimple(theUrl), null);
51 }
52
53
54
55
56
57
58
59
60
61
62 public HohClientSimple(URL theUrl, Parser theParser) {
63 super(new HohRawClientSimple(theUrl), theParser);
64 }
65
66
67
68
69 public void close() {
70 getRawClient().close();
71 }
72
73
74
75
76 public boolean isAutoClose() {
77 return getRawClient().isAutoClose();
78 }
79
80
81
82
83 public boolean isConnected() {
84 return getRawClient().isConnected();
85 }
86
87
88
89
90 public void setAutoClose(boolean theAutoClose) {
91 getRawClient().setAutoClose(theAutoClose);
92 }
93
94 }