Produced by Araxis Merge on 8/31/2017 11:16:52 AM 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 | JLV_2.6.zip\JLV_2.6\JLV_2.6\Joint Legacy Viewer\JLVQoS\src\main\java\gov\va\med\jmeadows\dataservicehandler | BHIERelayServiceHandler.java | Thu Aug 31 12:13:58 2017 UTC |
2 | JLV_2.6.zip\JLV_2.6\JLV_2.6\Joint Legacy Viewer\JLVQoS\src\main\java\gov\va\med\jmeadows\dataservicehandler | BHIERelayServiceHandler.java | Thu Aug 31 13:26:06 2017 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 226 |
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 | * Janus 4 .0 (c) | |
3 | * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights Reserved. | |
4 | * Develop ed for the Pacific T elehealth & Technolo gy Hui and the Pacif ic Joint I nformation Technolog y Center | |
5 | * Contrib utors: | |
6 | * Hon orable Sen ator Danie l K. Inouy e | |
7 | * VA Pacific Is lands Heal th Care Sy stem | |
8 | * Tri pler Army Medical Ce nter | |
9 | */ | |
10 | ||
11 | ||
12 | package go v.va.med.j meadows.da taserviceh andler; | |
13 | ||
14 | import gov .va.med.bh ie.*; | |
15 | import gov .va.med.jm eadows.com mon.JMeado wsExceptio n; | |
16 | ||
17 | import jav ax.xml.nam espace.QNa me; | |
18 | import jav ax.xml.ws. BindingPro vider; | |
19 | import jav ax.xml.ws. soap.MTOMF eature; | |
20 | import jav a.net.Malf ormedURLEx ception; | |
21 | ||
22 | /** | |
23 | * BHIESer viceHandle r | |
24 | */ | |
25 | public cla ss BHIERel ayServiceH andler ext ends DataS erviceHand ler | |
26 | { | |
27 | privat e BHIERela yService b hieRelaySe rvice; | |
28 | ||
29 | public BHIERelay ServiceHan dler(Strin g url) | |
30 | { | |
31 | su per(); | |
32 | ||
33 | se rviceURL = url; | |
34 | se rviceName = "BHIERel ayService" ; | |
35 | serviceNam espace = " http://web service.bh ie. URL /"; | |
36 | qS erviceName = new QNa me(service Namespace, serviceNa me); | |
37 | ||
38 | se rviceUsern ame = APP_ CONFIG.get BHIERelayS erviceUser name(); | |
39 | se rvicePassw ord = APP_ CONFIG.get BHIERelayS ervicePass word(); | |
40 | ||
41 | ||
42 | } | |
43 | ||
44 | privat e BHIERela y getBHIER elayPort() throws Ma lformedURL Exception | |
45 | { | |
46 | re turn getBH IERelayPor t(false); | |
47 | } | |
48 | ||
49 | privat e BHIERela y getBHIER elayPort(b oolean inc ludeMTOMFe ature) thr ows Malfor medURLExce ption | |
50 | { | |
51 | if (bhieRela yService = = null) | |
52 | { | |
53 | createSe rvice(); | |
54 | } | |
55 | ||
56 | BH IERelay po rt = null; | |
57 | ||
58 | if (includeM TOMFeature ) | |
59 | { | |
60 | port = b hieRelaySe rvice.getB HIERelayPo rt(new MTO MFeature() ); | |
61 | } | |
62 | el se port = bhieRelayS ervice.get BHIERelayP ort(); | |
63 | ||
64 | // set port e ndpoint ad dress | |
65 | Bi ndingProvi der bp = ( BindingPro vider)port ; | |
66 | bp .getReques tContext() .put(Bindi ngProvider .ENDPOINT_ ADDRESS_PR OPERTY, se rviceURL); | |
67 | bp .getReques tContext() .put(Bindi ngProvider .USERNAME_ PROPERTY, serviceUse rname); | |
68 | bp .getReques tContext() .put(Bindi ngProvider .PASSWORD_ PROPERTY, servicePas sword); | |
69 | bp .getReques tContext() .put("com. sun.xml.in ternal.ws. connect.ti meout", se rviceConne ctionTimeo utMS); | |
70 | bp .getReques tContext() .put("com. sun.xml.in ternal.ws. request.ti meout", se rviceReque stTimeoutM S); | |
71 | bp .getReques tContext() .put("com. sun.xml.ws .connect.t imeout", s erviceConn ectionTime outMS); | |
72 | bp .getReques tContext() .put("com. sun.xml.ws .request.t imeout", s erviceRequ estTimeout MS); | |
73 | ||
74 | re turn port; | |
75 | } | |
76 | ||
77 | privat e synchron ized void createServ ice() | |
78 | { | |
79 | if (bhieRela yService = = null) | |
80 | { | |
81 | try | |
82 | { | |
83 | bhie RelayServi ce = new B HIERelaySe rvice(); | |
84 | } | |
85 | catch(Ex ception e) | |
86 | { | |
87 | thro w new Runt imeExcepti on(e); | |
88 | } | |
89 | } | |
90 | } | |
91 | ||
92 | // For BDA syste m check | |
93 | public V4ResultC ollection getPatient ProblemLis t(QueryBea n queryBea n) throws JMeadowsEx ception | |
94 | { | |
95 | tr y | |
96 | { | |
97 | return g etBHIERela yPort().ge tPatientPr oblemList( queryBean) ; | |
98 | } | |
99 | ca tch(Except ion e) | |
100 | { | |
101 | throw ne w JMeadows Exception( e); | |
102 | } | |
103 | } | |
104 | ||
105 | // For Snarework s system c heck | |
106 | public SnareUser getSnare worksUser( String use r, String credential s) throws JMeadowsEx ception { | |
107 | tr y { | |
108 | return g etBHIERela yPort().ge tSnarework sUser(null , user, cr edentials) ; | |
109 | } | |
110 | ca tch (Excep tion e) { | |
111 | throw ne w JMeadows Exception( e); | |
112 | } | |
113 | } | |
114 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.