source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Common/NhincLib/src/gov/hhs/fha/nhinc/connectmgr/data/CMBindingTemplate.java@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 2.6 KB
Line 
1package gov.hhs.fha.nhinc.connectmgr.data;
2
3/**
4 * @author westbergl
5 * @version 1.0
6 * @created 20-Oct-2008 12:06:46 PM
7 */
8public class CMBindingTemplate
9{
10 private String bindingKey = "";
11 private String endpointURL = "";
12 private String wsdlURL = "";
13
14 /**
15 * Default constructor.
16 */
17 public CMBindingTemplate()
18 {
19 clear();
20 }
21
22 /**
23 * Clear the contents of this and set it to a default state.
24 */
25 public void clear()
26 {
27 endpointURL = "";
28 wsdlURL = "";
29 bindingKey = "";
30 }
31
32 /**
33 * Returns true of the contents of the object are the same as the one
34 * passed in.
35 *
36 * @param oCompare The object to compare.
37 * @return TRUE if the contents are the same as the one passed in.
38 */
39 public boolean equals(CMBindingTemplate oCompare)
40 {
41 if ((!this.bindingKey.equals(oCompare.bindingKey)) ||
42 (!this.endpointURL.equals(oCompare.endpointURL)) ||
43 (!this.wsdlURL.equals(oCompare.wsdlURL)))
44 {
45 return false;
46 }
47
48 // If we got here then everything is the same...
49 //----------------------------------------------
50 return true;
51 }
52
53
54 /**
55 * Returns the binding key for this binding.
56 *
57 * @return The binding key for this binding.
58 */
59 public String getBindingKey()
60 {
61 return bindingKey;
62 }
63
64 /**
65 * Sets the binding key for this binding.
66 *
67 * @param bindingKey The binding key for this binding.
68 */
69 public void setBindingKey(String bindingKey)
70 {
71 this.bindingKey = bindingKey;
72 }
73
74 /**
75 * Returns the end point URL for this binding.
76 *
77 * @return The end point URL for this binding.
78 */
79 public String getEndpointURL()
80 {
81 return endpointURL;
82 }
83
84 /**
85 * Sets the end point URL for this binding.
86 *
87 * @param endpointURL The end point URL for this binding.
88 */
89 public void setEndpointURL(String endpointURL)
90 {
91 this.endpointURL = endpointURL;
92 }
93
94 /**
95 * Returns the URL for the WSDL for this binding.
96 *
97 * @return The URL for the WSDL for this binding.
98 */
99 public String getWsdlURL()
100 {
101 return wsdlURL;
102 }
103
104 /**
105 * Sets the URL for the WSDL for this binding.
106 *
107 * @param wsdlURL The URL for the WSDL for this binding.
108 */
109 public void setWsdlURL(String wsdlURL)
110 {
111 this.wsdlURL = wsdlURL;
112 }
113
114
115}
Note: See TracBrowser for help on using the repository browser.