Produced by Araxis Merge on 12/5/2017 12:06:39 PM Central Standard 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 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\DefaultVISAWebApp\main\src\java\gov\va\med\imaging\visa\web | VersionServlet.java | Mon Dec 4 21:35:10 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\DefaultVISAWebApp\main\src\java\gov\va\med\imaging\visa\web | VersionServlet.java | Mon Dec 4 21:59:16 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 164 |
| 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: Jan 25, 2013 | |
| 6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
| 7 | Developer:
|
|
| 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.vis a.web; | |
| 27 | ||
| 28 | import gov .va.med.im aging.heal th.VixServ erHealth; | |
| 29 | import gov .va.med.im aging.heal th.VixServ erHealthPr operties; | |
| 30 | import gov .va.med.im aging.visa .VisaWebCo ntext; | |
| 31 | ||
| 32 | import jav a.io.IOExc eption; | |
| 33 | import jav a.io.Print Writer; | |
| 34 | ||
| 35 | import jav ax.servlet .ServletEx ception; | |
| 36 | import jav ax.servlet .http.Http Servlet; | |
| 37 | import jav ax.servlet .http.Http ServletReq uest; | |
| 38 | import jav ax.servlet .http.Http ServletRes ponse; | |
| 39 | ||
| 40 | import org .apache.lo gging.log4 j.LogManag er; | |
| 41 | import org .apache.lo gging.log4 j.Logger; | |
| 42 | ||
| 43 | /** | |
| 44 | * @author
|
|
| 45 | * | |
| 46 | */ | |
| 47 | public cla ss Version Servlet | |
| 48 | extends Ht tpServlet | |
| 49 | { | |
| 50 | pr ivate stat ic final l ong serial VersionUID = -770645 1439324981 820L; | |
| 51 | ||
| 52 | pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(Vers ionServlet .class); | |
| 53 | pr ivate fina l static S tring resp onseConten tType = "t ext/xml"; | |
| 54 | ||
| 55 | /* (non-Java doc) | |
| 56 | * @see java x.servlet. http.HttpS ervlet#doG et(javax.s ervlet.htt p.HttpServ letRequest , javax.se rvlet.http .HttpServl etResponse ) | |
| 57 | * / | |
| 58 | @O verride | |
| 59 | pr otected vo id doGet(H ttpServlet Request re quest, Htt pServletRe sponse res ponse) | |
| 60 | th rows Servl etExceptio n, IOExcep tion | |
| 61 | { | |
| 62 | try | |
| 63 | { | |
| 64 | VixSer verHealth serverHeal th = VisaW ebContext. getRouter( ).getVixSe rverHealth (null); | |
| 65 | String version = serverHea lth.getVix ServerHeal thProperti es().get(V ixServerHe althProper ties.VIX_S ERVER_HEAL TH_VIX_VER SION); | |
| 66 | respon se.setCont entType(re sponseCont entType); | |
| 67 | PrintW riter writ er = respo nse.getWri ter(); | |
| 68 | writer .write("<? xml versio n=\"1.0\" encoding=\ "UTF-8\"?> \n"); | |
| 69 | writer .write("<v ersion>" + version + "</versio n>"); | |
| 70 | ||
| 71 | writer .flush(); | |
| 72 | writer .close(); | |
| 73 | } | |
| 74 | catc h(Exceptio n ex) | |
| 75 | { | |
| 76 | logger .error("Er ror loadin g VIX Serv er Health" , ex); | |
| 77 | throw new Servle tException (ex); | |
| 78 | } | |
| 79 | ||
| 80 | } | |
| 81 | ||
| 82 | ||
| 83 | ||
| 84 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.