Produced by Araxis Merge on 3/25/2019 8:58:02 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 | C:\AraxisMergeCompare\Pri_un\IMAG_Source\VISA\Java\ImagingExchangeBaseWebProxy\main\src\java\gov\va\med\imaging\proxy\ids\configuration | IDSProxyConfiguration.java | Mon Mar 18 20:39:13 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\ImagingExchangeBaseWebProxy\main\src\java\gov\va\med\imaging\proxy\ids\configuration | IDSProxyConfiguration.java | Tue Mar 19 12:03:48 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 452 |
Changed | 2 | 4 |
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 | * | |
3 | Package: MAG - Vis tA Imaging | |
4 | WARNING: Per VHA D irective 2 004-038, t his routin e should n ot be modi fied. | |
5 | Date Cre ated: Feb 17, 2010 | |
6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
7 | Developer: DNS werfej | |
8 | Descript ion: | |
9 | ||
10 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
11 | ;; Property of the US Government . | |
12 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
13 | ;; Use of un released v ersions of this soft ware requi res the us er | |
14 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
15 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
16 | ;; telephon e (301) 73 4-0100. | |
17 | ;; | |
18 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
19 | ;; a Class I I medical device. A s such, it may not b e changed | |
20 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
21 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
22 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
23 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
24 | ||
25 | */ | |
26 | package go v.va.med.i maging.pro xy.ids.con figuration ; | |
27 | ||
28 | import gov .va.med.im aging.faca de.configu ration.Abs tractBaseF acadeConfi guration; | |
29 | import gov .va.med.im aging.faca de.configu ration.Fac adeConfigu rationFact ory; | |
30 | import gov .va.med.im aging.faca de.configu ration.exc eptions.Ca nnotLoadCo nfiguratio nException ; | |
31 | ||
32 | /** | |
33 | * @author DNS werfej | |
34 | * | |
35 | */ | |
36 | public cla ss IDSProx yConfigura tion | |
37 | extends Ab stractBase FacadeConf iguration | |
38 | { | |
39 | pr ivate Stri ng idsProt ocol = nul l; | |
40 | pr ivate Stri ng idsAppl icationPat h = null; | |
41 | pr ivate Stri ng idsServ icePath = null; | |
42 | pr ivate Inte ger idsCon nectionTim eoutMs = n ull; | |
43 | pr ivate Inte ger idsRes ponseTimeo utMs = nul l; | |
44 | ||
45 | pu blic IDSPr oxyConfigu ration() | |
46 | { | |
47 | supe r(); | |
48 | } | |
49 | ||
50 | pr ivate fina l static S tring defa ultIdsProt ocol = "ht tp"; | |
51 | pr ivate fina l static S tring defa ultIdsAppl icationPat h = "IDSWe bApp"; | |
52 | pr ivate fina l static S tring defa ultIdsServ icePath = "VersionsS ervice"; | |
53 | pr ivate fina l static i nt default IdsConnect ionTimeout Ms = 10000 ; // 10 se conds | |
54 | pr ivate fina l static i nt default IdsRespons eTimeoutMs = 30000; // 30 seco nds | |
55 | ||
56 | pu blic synch ronized st atic IDSPr oxyConfigu ration get IdsProxyCo nfiguratio n() | |
57 | { | |
58 | try | |
59 | { | |
60 | return FacadeCon figuration Factory.ge tConfigura tionFactor y().getCon figuration ( | |
61 | IDSProxyCo nfiguratio n.class); | |
62 | } | |
63 | catc h(CannotLo adConfigur ationExcep tion clcX) | |
64 | { | |
65 | return null; | |
66 | } | |
67 | } | |
68 | ||
69 | ||
70 | /* (non-Java doc) | |
71 | * @see gov. va.med.ima ging.facad e.configur ation.Abst ractBaseFa cadeConfig uration#lo adDefaultC onfigurati on() | |
72 | * / | |
73 | @O verride | |
74 | pu blic Abstr actBaseFac adeConfigu ration loa dDefaultCo nfiguratio n() | |
75 | { | |
76 | this .idsApplic ationPath = defaultI dsApplicat ionPath; | |
77 | this .idsProtoc ol = defau ltIdsProto col; | |
78 | this .idsServic ePath = de faultIdsSe rvicePath; | |
79 | this .idsConnec tionTimeou tMs = defa ultIdsConn ectionTime outMs; | |
80 | this .idsRespon seTimeoutM s = defaul tIdsRespon seTimeoutM s; | |
81 | retu rn this; | |
82 | } | |
83 | ||
84 | /* * | |
85 | * @return t he idsProt ocol | |
86 | * / | |
87 | pu blic Strin g getIdsPr otocol() | |
88 | { | |
89 | retu rn idsProt ocol; | |
90 | } | |
91 | ||
92 | pu blic Strin g getIdsPr otocolWith Default() | |
93 | { | |
94 | if(i dsProtocol == null) | |
95 | return defaultId sProtocol; | |
96 | retu rn idsProt ocol; | |
97 | } | |
98 | ||
99 | /* * | |
100 | * @param id sProtocol the idsPro tocol to s et | |
101 | * / | |
102 | pu blic void setIdsProt ocol(Strin g idsProto col) | |
103 | { | |
104 | this .idsProtoc ol = idsPr otocol; | |
105 | } | |
106 | ||
107 | /* * | |
108 | * @return t he idsAppl icationPat h | |
109 | * / | |
110 | pu blic Strin g getIdsAp plicationP ath() | |
111 | { | |
112 | retu rn idsAppl icationPat h; | |
113 | } | |
114 | ||
115 | pu blic Strin g getIdsAp plicationP athWithDef ault() | |
116 | { | |
117 | if(i dsApplicat ionPath == null) | |
118 | return defaultId sApplicati onPath; | |
119 | retu rn idsAppl icationPat h; | |
120 | } | |
121 | ||
122 | /* * | |
123 | * @param id sApplicati onPath the idsApplic ationPath to set | |
124 | * / | |
125 | pu blic void setIdsAppl icationPat h(String i dsApplicat ionPath) | |
126 | { | |
127 | this .idsApplic ationPath = idsAppli cationPath ; | |
128 | } | |
129 | ||
130 | /* * | |
131 | * @return t he idsServ icePath | |
132 | * / | |
133 | pu blic Strin g getIdsSe rvicePath( ) | |
134 | { | |
135 | retu rn idsServ icePath; | |
136 | } | |
137 | ||
138 | pu blic Strin g getIdsSe rvicePathW ithDefault () | |
139 | { | |
140 | if(i dsServiceP ath == nul l) | |
141 | return defaultId sServicePa th; | |
142 | retu rn idsServ icePath; | |
143 | } | |
144 | ||
145 | /* * | |
146 | * @param id sServicePa th the ids ServicePat h to set | |
147 | * / | |
148 | pu blic void setIdsServ icePath(St ring idsSe rvicePath) | |
149 | { | |
150 | this .idsServic ePath = id sServicePa th; | |
151 | } | |
152 | ||
153 | ||
154 | /* * | |
155 | * @return t he idsConn ectionTime outMs | |
156 | * / | |
157 | pu blic Integ er getIdsC onnectionT imeoutMs() | |
158 | { | |
159 | retu rn idsConn ectionTime outMs; | |
160 | } | |
161 | ||
162 | ||
163 | /* * | |
164 | * @param id sConnectio nTimeoutMs the idsCo nnectionTi meoutMs to set | |
165 | * / | |
166 | pu blic void setIdsConn ectionTime outMs(Inte ger idsCon nectionTim eoutMs) | |
167 | { | |
168 | this .idsConnec tionTimeou tMs = idsC onnectionT imeoutMs; | |
169 | } | |
170 | ||
171 | ||
172 | /* * | |
173 | * @return t he idsResp onseTimeou tMs | |
174 | * / | |
175 | pu blic Integ er getIdsR esponseTim eoutMs() | |
176 | { | |
177 | retu rn idsResp onseTimeou tMs; | |
178 | } | |
179 | ||
180 | ||
181 | /* * | |
182 | * @param id sResponseT imeoutMs t he idsResp onseTimeou tMs to set | |
183 | * / | |
184 | pu blic void setIdsResp onseTimeou tMs(Intege r idsRespo nseTimeout Ms) | |
185 | { | |
186 | this .idsRespon seTimeoutM s = idsRes ponseTimeo utMs; | |
187 | } | |
188 | ||
189 | ||
190 | pu blic int g etIdsRespo nseTimeout MsWithDefa ult() | |
191 | { | |
192 | if(i dsResponse TimeoutMs == null) | |
193 | return defaultId sResponseT imeoutMs; | |
194 | retu rn idsResp onseTimeou tMs; | |
195 | } | |
196 | ||
197 | pu blic int g etIdsConne ctionTimeo utMsWithDe fault() | |
198 | { | |
199 | if(i dsConnecti onTimeoutM s == null) | |
200 | return defaultId sConnectio nTimeoutMs ; | |
201 | retu rn idsConn ectionTime outMs; | |
202 | } | |
203 | ||
204 | pu blic stati c void mai n(String [ ] args) | |
205 | { | |
206 | IDSP roxyConfig uration co nfig = get IdsProxyCo nfiguratio n(); | |
207 | ||
208 | int connection Timeout = 0; | |
209 | int responseTi meout = 0; | |
210 | ||
211 | for( int i = 0; i < args. length; i+ +) | |
212 | { | |
213 | if("-c onnectiont imeout".eq ualsIgnore Case(args[ i])) | |
214 | { | |
215 | connecti onTimeout = Integer. parseInt(a rgs[++i]); | |
216 | } | |
217 | else i f("-respon setimeout" .equals(ar gs[i])) | |
218 | { | |
219 | response Timeout = Integer.pa rseInt(arg s[++i]); | |
220 | } | |
221 | } | |
222 | if(c onnectionT imeout > 0 ) | |
223 | config .setIdsCon nectionTim eoutMs(con nectionTim eout); | |
224 | if(r esponseTim eout > 0) | |
225 | config .setIdsRes ponseTimeo utMs(respo nseTimeout ); | |
226 | conf ig.storeCo nfiguratio n(); | |
227 | } | |
228 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.