Produced by Araxis Merge on 3/29/2017 4:53:21 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 | CTT-DM CIF Submission.zip\code\ISAAC\hl7-messaging\src\test\java\gov\vha\isaac\ochre\deployment\hapi\extension\hl7\message | ApplicationPropertyReader.java | Fri Mar 3 16:20:19 2017 UTC |
| 2 | CTT-DM CIF Submission.zip\code\ISAAC\hl7-messaging\src\test\java\gov\vha\isaac\ochre\deployment\hapi\extension\hl7\message | ApplicationPropertyReader.java | Wed Mar 29 16:13:16 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 124 |
| 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 | * Copyrig ht Notice | |
| 3 | * | |
| 4 | * This is a work of the U.S. Government and is no t subject to copyrig ht | |
| 5 | * protect ion in the United St ates. Fore ign copyri ghts may a pply. | |
| 6 | * | |
| 7 | * License d under th e Apache L icense, Ve rsion 2.0 (the "Lice nse"); | |
| 8 | * you may not use t his file e xcept in c ompliance with the L icense. | |
| 9 | * You may obtain a copy of th e License at | |
| 10 | * | |
| 11 | * http:// www.apache .org/licen ses/LICENS E-2.0 | |
| 12 | * | |
| 13 | * Unless required b y applicab le law or agreed to in writing , software | |
| 14 | * distrib uted under the Licen se is dist ributed on an "AS IS " BASIS, | |
| 15 | * WITHOUT WARRANTIE S OR CONDI TIONS OF A NY KIND, e ither expr ess or imp lied. | |
| 16 | * See the License f or the spe cific lang uage gover ning permi ssions and | |
| 17 | * limitat ions under the Licen se. | |
| 18 | */ | |
| 19 | package go v.vha.isaa c.ochre.de ployment.h api.extens ion.hl7.me ssage; | |
| 20 | ||
| 21 | import jav a.util.Mis singResour ceExceptio n; | |
| 22 | import jav a.util.Res ourceBundl e; | |
| 23 | ||
| 24 | import org .apache.lo gging.log4 j.LogManag er; | |
| 25 | import org .apache.lo gging.log4 j.Logger; | |
| 26 | ||
| 27 | /** | |
| 28 | * The <co de>getHL7S enderPrope rties</cod e> class s erves the purpose of | |
| 29 | * retriev ing values from .pro perties fi les based on a passe d key valu e. | |
| 30 | * <p> | |
| 31 | * | |
| 32 | * @author DNS | |
| 33 | */ | |
| 34 | ||
| 35 | public cla ss Applica tionProper tyReader | |
| 36 | { | |
| 37 | pr ivate stat ic Logger LOG = LogM anager.get Logger(App licationPr opertyRead er.class); | |
| 38 | ||
| 39 | /* * | |
| 40 | * The <code >getApplic ationPrope rties</cod e> method retrieves from | |
| 41 | * <code>app lication.p roperties< /code> the value of the passed parameter . | |
| 42 | * | |
| 43 | * @param pa rameterNam e | |
| 44 | * @return S tring valu e of param eter | |
| 45 | * @throws M issingReso urceExcept ion | |
| 46 | * / | |
| 47 | pu blic stati c String g etApplicat ionPropert y(String p arameterNa me) { | |
| 48 | Stri ng paramet erValue = null; | |
| 49 | ||
| 50 | Stri ng baseNam e = "appli cation"; | |
| 51 | ||
| 52 | try { | |
| 53 | Resour ceBundle r esourceBun dle = Reso urceBundle .getBundle (baseName) ; | |
| 54 | String key = par ameterName ; | |
| 55 | ||
| 56 | parame terValue = resourceB undle.getS tring(key) ; | |
| 57 | } ca tch (Excep tion e) { | |
| 58 | LOG.de bug(e.getM essage()); | |
| 59 | } | |
| 60 | ||
| 61 | retu rn paramet erValue; | |
| 62 | } | |
| 63 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.