Produced by Araxis Merge on 5/1/2018 12:02:00 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\AraxisMergeCompare\Pri_un\ZIP\JLV_2.6.2.0.3_src\JLV\src\java\gov\va\med\jlvqos | JLVQoSDataServiceHandlerImpl.java | Thu Mar 29 22:08:31 2018 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ZIP\JLV_2.6.2.0.3_src\JLV\src\java\gov\va\med\jlvqos | JLVQoSDataServiceHandlerImpl.java | Tue May 1 13:38:49 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 524 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | ||
2 | package go v.va.med.j lvqos; | |
3 | ||
4 | import gov .va.med.co mmon.AppCo nfig; | |
5 | import gov .va.med.jl vqos.webse rvice.JLVQ oSData; | |
6 | import gov .va.med.jl vqos.webse rvice.JLVQ oSDataServ ice; | |
7 | import gov .va.med.jm eadows.Hea derHandler Resolver; | |
8 | import gov .va.med.jm eadows.web service.JM eadowsQuer y; | |
9 | import gov .va.med.jm eadows.web service.Pa tient; | |
10 | import gov .va.med.jm eadows.web service.Si te; | |
11 | import gov .va.med.jm eadows.web service.Us er; | |
12 | import gov .va.med.vh ahon.commo n.Utils; | |
13 | import org .apache.lo g4j.Logger ; | |
14 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
15 | import org .springfra mework.ste reotype.Co mponent; | |
16 | ||
17 | import jav ax.xml.nam espace.QNa me; | |
18 | import jav ax.xml.soa p.SOAPExce ption; | |
19 | import jav ax.xml.ws. BindingPro vider; | |
20 | import jav ax.xml.ws. soap.MTOMF eature; | |
21 | import jav a.util.Arr ayList; | |
22 | import jav a.util.Lis t; | |
23 | ||
24 | @Component | |
25 | public cla ss JLVQoSD ataService HandlerImp l implemen ts JLVQoSD ataService Handler { | |
26 | ||
27 | privat e static f inal Logge r logger = Logger.ge tLogger(JL VQoSDataSe rviceHandl erImpl.cla ss.getName ()); | |
28 | @Autow ired | |
29 | protec ted AppCon fig appCon fig; | |
30 | privat e String s erviceURL; | |
31 | privat e String m _ServiceNa me = "JLVQ oSDataServ ice"; | |
32 | private St ring m_nam espace = " http://web service.jl vqos. URL /"; | |
33 | privat e QName m_ QserviceNa me = new Q Name(m_nam espace, m_ ServiceNam e); | |
34 | ||
35 | privat e String a ppName; | |
36 | ||
37 | privat e String u sername; | |
38 | privat e String p assword; | |
39 | ||
40 | privat e int conn ectionTime outMS = 30 000; | |
41 | privat e int requ estTimeout MS = 30000 ; | |
42 | ||
43 | privat e JLVQoSDa taService m_jlvqosDa taService; | |
44 | ||
45 | public JLVQoSDat aServiceHa ndlerImpl( String url ) { | |
46 | se rviceURL = url; | |
47 | } | |
48 | ||
49 | public JLVQoSDat aServiceHa ndlerImpl( ) { | |
50 | ||
51 | } | |
52 | ||
53 | public int getCo nnectionTi meoutMS() { | |
54 | re turn conne ctionTimeo utMS; | |
55 | } | |
56 | ||
57 | public void setC onnectionT imeoutMS(i nt connect ionTimeout MS) { | |
58 | th is.connect ionTimeout MS = conne ctionTimeo utMS; | |
59 | } | |
60 | ||
61 | public int getRe questTimeo utMS() { | |
62 | re turn reque stTimeoutM S; | |
63 | } | |
64 | ||
65 | public void setR equestTime outMS(int requestTim eoutMS) { | |
66 | th is.request TimeoutMS = requestT imeoutMS; | |
67 | } | |
68 | ||
69 | public String ge tServiceUR L() { | |
70 | re turn servi ceURL; | |
71 | } | |
72 | ||
73 | public void setS erviceURL( String ser viceURL) { | |
74 | th is.service URL = serv iceURL; | |
75 | } | |
76 | ||
77 | privat e JLVQoSDa ta getJLVQ oSDataPort () { | |
78 | re turn getJL VQoSDataPo rt(false); | |
79 | } | |
80 | ||
81 | public String ge tUsername( ) { | |
82 | re turn usern ame; | |
83 | } | |
84 | ||
85 | public void setU sername(St ring usern ame) { | |
86 | th is.usernam e = userna me; | |
87 | } | |
88 | ||
89 | public String ge tPassword( ) { | |
90 | re turn passw ord; | |
91 | } | |
92 | ||
93 | public void setP assword(St ring passw ord) { | |
94 | th is.passwor d = passwo rd; | |
95 | } | |
96 | ||
97 | privat e JLVQoSDa ta getJLVQ oSDataPort (boolean i ncludeMTOM Feature) { | |
98 | if (m_jlvqos DataServic e == null) { | |
99 | createSe rvice(); | |
100 | if (appC onfig.getE nableWSSec urityHeade r()) { | |
101 | m_jl vqosDataSe rvice.setH andlerReso lver(new H eaderHandl erResolver ()); | |
102 | } | |
103 | } | |
104 | ||
105 | JL VQoSData p ort = null ; | |
106 | if (includeM TOMFeature ) { | |
107 | port = m _jlvqosDat aService.g etJLVQoSDa taPort(new MTOMFeatu re()); | |
108 | } else port = m_jlvqos DataServic e.getJLVQo SDataPort( ); | |
109 | ||
110 | // set connec tion timeo ut | |
111 | Bi ndingProvi der bp = ( BindingPro vider) por t; | |
112 | bp .getReques tContext() .put(Bindi ngProvider .ENDPOINT_ ADDRESS_PR OPERTY, se rviceURL); | |
113 | bp .getReques tContext() .put("com. sun.xml.in ternal.ws. connect.ti meout", co nnectionTi meoutMS); | |
114 | bp .getReques tContext() .put("com. sun.xml.in ternal.ws. request.ti meout", re questTimeo utMS); | |
115 | bp .getReques tContext() .put("com. sun.xml.ws .connect.t imeout", c onnectionT imeoutMS); | |
116 | bp .getReques tContext() .put("com. sun.xml.ws .request.t imeout", r equestTime outMS); | |
117 | ||
118 | re turn port; | |
119 | } | |
120 | ||
121 | privat e synchron ized void createServ ice() { | |
122 | if (m_jlvqos DataServic e == null) { | |
123 | try { | |
124 | m_jl vqosDataSe rvice = ne w JLVQoSDa taService( ); | |
125 | } catch (Exception e) { | |
126 | thro w new Runt imeExcepti on(e); | |
127 | } | |
128 | ||
129 | } | |
130 | } | |
131 | ||
132 | // priv ate void l og(String methodName ) { | |
133 | // log(method Name, null ); | |
134 | // } | |
135 | ||
136 | // priv ate void l og(String methodName , JMeadows Query quer yBean) { | |
137 | // if (logger .isDebugEn abled()) { | |
138 | // logger .debug("In voking met hod: " + m ethodName) ; | |
139 | // if (qu eryBean != null) { | |
140 | // lo gQueryBean Params(met hodName, q ueryBean); | |
141 | // } | |
142 | // } | |
143 | // } | |
144 | ||
145 | // priv ate void l ogQueryBea nParams(St ring metho dName, JMe adowsQuery queryBean ) { | |
146 | // if (!logge r.isDebugE nabled()) return; | |
147 | // | |
148 | // String use rId; | |
149 | // Site hostS ite; | |
150 | // String pat VAIcn; | |
151 | // String pat DoDEdipi; | |
152 | // List<Site> vistaSite s = new Ar rayList<Si te>(); | |
153 | // String ite mId; | |
154 | // String rec ordSiteCod e; | |
155 | // String sta tus; | |
156 | // Integer ac tive; | |
157 | // String sta rtDate; | |
158 | // String end Date; | |
159 | // | |
160 | // StringBuil der sb = n ew StringB uilder(); | |
161 | // sb.append( methodName ); | |
162 | // sb.append( " query be an params: "); | |
163 | // | |
164 | // if (queryB ean != nul l) { | |
165 | // User u ser = quer yBean.getU ser(); | |
166 | // Patien t patient = queryBea n.getPatie nt(); | |
167 | // | |
168 | // if (us er != null ) { | |
169 | // us erId = use r.getUserI d(); | |
170 | // ho stSite = u ser.getHos tSite(); | |
171 | // | |
172 | // sb .append("U ser - user Id: "); | |
173 | // sb .append(us erId); | |
174 | // sb .append(" , hostSite : "); | |
175 | // if (hostSite != null) sb.append( hostSite.g etSiteCode ()); | |
176 | // } else { | |
177 | // sb .append("U ser - null "); | |
178 | // } | |
179 | // | |
180 | // if (pa tient != n ull) { | |
181 | // | |
182 | // pa tVAIcn = p atient.get ICN(); | |
183 | // pa tDoDEdipi = patient. getEDIPI() ; | |
184 | // | |
185 | // sb .append("; Patient - "); | |
186 | // sb .append(", ICN: "); | |
187 | // sb .append(pa tVAIcn); | |
188 | // sb .append(", EDIPI: ") ; | |
189 | // sb .append(pa tDoDEdipi) ; | |
190 | // | |
191 | // sb .append(", vistaSite s: "); | |
192 | // | |
193 | // if (vistaSit es.size() < 1) sb.ap pend("none "); | |
194 | // | |
195 | // fo r (Site si te : vista Sites) { | |
196 | // String s iteCode = site.getSi teCode(); | |
197 | // sb.appen d(siteCode ); | |
198 | // sb.appen d(", "); | |
199 | // } | |
200 | // } else { | |
201 | // sb .append("; Patient - null"); | |
202 | // } | |
203 | // | |
204 | // itemId = queryBe an.getItem Id(); | |
205 | // active = queryBe an.getActi ve(); | |
206 | // record SiteCode = queryBean .getRecord SiteCode() ; | |
207 | // startD ate = Util s.formatDi splayDate( queryBean. getStartDa te()); | |
208 | // endDat e = Utils. formatDisp layDate(qu eryBean.ge tEndDate() ); | |
209 | // status = queryBe an.getStat us(); | |
210 | // | |
211 | // sb.app end("; sta rtDate: ") ; | |
212 | // sb.app end(startD ate); | |
213 | // sb.app end(", end Date: "); | |
214 | // sb.app end(endDat e); | |
215 | // sb.app end(", ite mId: "); | |
216 | // sb.app end(itemId ); | |
217 | // sb.app end(", rec ordSiteCod e: "); | |
218 | // sb.app end(record SiteCode); | |
219 | // sb.app end(", sta tus: "); | |
220 | // sb.app end(status ); | |
221 | // sb.app end(", act ive: "); | |
222 | // sb.app end(active ); | |
223 | // | |
224 | // } | |
225 | // | |
226 | // logger.deb ug(sb.toSt ring()); | |
227 | // } | |
228 | ||
229 | public String ge tAppName() { | |
230 | re turn this. appName; | |
231 | } | |
232 | ||
233 | public void setA ppName(Str ing appNam e) { | |
234 | th is.appName = appName ; | |
235 | } | |
236 | ||
237 | @Overr ide | |
238 | public String ve rify() thr ows SOAPEx ception { | |
239 | St ring retVa l = null; | |
240 | tr y { | |
241 | JLVQoSDa ta port = getJLVQoSD ataPort(); | |
242 | retVal = port.veri fy(); | |
243 | } catch (Exc eption e) { | |
244 | logger.e rror(e.get Message(), e); | |
245 | throw ne w SOAPExce ption(e); | |
246 | } | |
247 | re turn retVa l; | |
248 | } | |
249 | ||
250 | @Overr ide | |
251 | public String ge tServiceEr rors() thr ows SOAPEx ception { | |
252 | St ring retVa l = null; | |
253 | tr y { | |
254 | JLVQoSDa ta port = getJLVQoSD ataPort(); | |
255 | retVal = port.getS erviceErro rs(); | |
256 | } catch (Exc eption e) { | |
257 | logger.e rror(e.get Message(), e); | |
258 | throw ne w SOAPExce ption(e); | |
259 | } | |
260 | re turn retVa l; | |
261 | } | |
262 | ||
263 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.