Produced by Araxis Merge on 4/2/2019 9:48:59 PM Eastern 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_JLV 2_7_2_0_0.zip\JLV_Src\JLVQoS\src\main\java\gov\va\med\jmeadows\dataservicehandler | BHIERelayServiceHandler.java | Wed Mar 20 21:43:22 2019 UTC |
2 | JLV_JLV 2_7_2_0_0.zip\JLV_Src\JLVQoS\src\main\java\gov\va\med\jmeadows\dataservicehandler | BHIERelayServiceHandler.java | Tue Apr 2 13:26:30 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 214 |
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:// DNS . 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 = bhieR elayServic e.getBHIER elayPort() ; | |
57 | ||
58 | // set port e ndpoint ad dress | |
59 | Bi ndingProvi der bp = ( BindingPro vider)port ; | |
60 | bp .getReques tContext() .put(Bindi ngProvider .ENDPOINT_ ADDRESS_PR OPERTY, se rviceURL); | |
61 | bp .getReques tContext() .put(Bindi ngProvider .USERNAME_ PROPERTY, serviceUse rname); | |
62 | bp .getReques tContext() .put(Bindi ngProvider .PASSWORD_ PROPERTY, servicePas sword); | |
63 | bp .getReques tContext() .put("com. sun.xml.in ternal.ws. connect.ti meout", se rviceConne ctionTimeo utMS); | |
64 | bp .getReques tContext() .put("com. sun.xml.in ternal.ws. request.ti meout", se rviceReque stTimeoutM S); | |
65 | bp .getReques tContext() .put("com. sun.xml.ws .connect.t imeout", s erviceConn ectionTime outMS); | |
66 | bp .getReques tContext() .put("com. sun.xml.ws .request.t imeout", s erviceRequ estTimeout MS); | |
67 | ||
68 | re turn port; | |
69 | } | |
70 | ||
71 | privat e synchron ized void createServ ice() | |
72 | { | |
73 | if (bhieRela yService = = null) | |
74 | { | |
75 | try | |
76 | { | |
77 | bhie RelayServi ce = new B HIERelaySe rvice(); | |
78 | } | |
79 | catch(Ex ception e) | |
80 | { | |
81 | thro w new Runt imeExcepti on(e); | |
82 | } | |
83 | } | |
84 | } | |
85 | ||
86 | // For BDA syste m check | |
87 | public V4ResultC ollection getPatient ProblemLis t(QueryBea n queryBea n) throws JMeadowsEx ception | |
88 | { | |
89 | tr y | |
90 | { | |
91 | return g etBHIERela yPort().ge tPatientPr oblemList( queryBean) ; | |
92 | } | |
93 | ca tch(Except ion e) | |
94 | { | |
95 | throw ne w JMeadows Exception( e); | |
96 | } | |
97 | } | |
98 | ||
99 | // For Snarework s system c heck | |
100 | public SnareUser getSnare worksUser( String use r, String credential s) throws JMeadowsEx ception { | |
101 | tr y { | |
102 | return g etBHIERela yPort().ge tSnarework sUser(null , user, cr edentials) ; | |
103 | } | |
104 | ca tch (Excep tion e) { | |
105 | throw ne w JMeadows Exception( e); | |
106 | } | |
107 | } | |
108 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.