Produced by Araxis Merge on 12/5/2017 12:06:49 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\SiteServiceWebApp\main\src\java\gov\va\med\imaging\exchange\siteservice\web | SiteServiceAxisServlet.java | Mon Dec 4 21:35:20 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\SiteServiceWebApp\main\src\java\gov\va\med\imaging\exchange\siteservice\web | SiteServiceAxisServlet.java | Mon Dec 4 22:05:49 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 208 |
| 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: Jun 9, 2011 | |
| 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.exc hange.site service.we b; | |
| 27 | ||
| 28 | import jav a.io.IOExc eption; | |
| 29 | import jav a.io.Print Writer; | |
| 30 | ||
| 31 | import jav ax.servlet .ServletEx ception; | |
| 32 | import jav ax.servlet .http.Http ServletReq uest; | |
| 33 | import jav ax.servlet .http.Http ServletRes ponse; | |
| 34 | ||
| 35 | import org .apache.ax is.handler s.soap.SOA PService; | |
| 36 | import org .apache.lo gging.log4 j.LogManag er; | |
| 37 | import org .apache.lo gging.log4 j.Logger; | |
| 38 | ||
| 39 | /** | |
| 40 | * This ov errides th e default service in fo to redi rect the u ser to the web page | |
| 41 | * that sh ows the in formation in the sit e service | |
| 42 | * | |
| 43 | * @author
|
|
| 44 | * | |
| 45 | */ | |
| 46 | public cla ss SiteSer viceAxisSe rvlet | |
| 47 | extends or g.apache.a xis.transp ort.http.A xisServlet | |
| 48 | { | |
| 49 | pr ivate stat ic final l ong serial VersionUID = -895958 6609980206 690L; | |
| 50 | ||
| 51 | pr ivate fina l static L ogger logg er = | |
| 52 | LogM anager.get Logger(Sit eServiceAx isServlet. class); | |
| 53 | ||
| 54 | ||
| 55 | pu blic void doGet(Http ServletReq uest reque st, HttpSe rvletRespo nse respon se) | |
| 56 | th rows Servl etExceptio n, IOExcep tion | |
| 57 | { | |
| 58 | ||
| 59 | // E N1^XUSBSE2 (URL_"/get Site?siteI D="_STNNUM ,.RESULTS) | |
| 60 | bool ean handle d = false; | |
| 61 | ||
| 62 | Stri ng pathInf o = reques t.getPathI nfo(); | |
| 63 | if(p athInfo != null) | |
| 64 | { | |
| 65 | boolea n exchange SiteServic e = (pathI nfo.starts With("/Ima gingExchan geSiteServ ice.asmx") ); | |
| 66 | if(pat hInfo.ends With("/get Site")) | |
| 67 | { | |
| 68 | handled = true; | |
| 69 | SiteServ iceXmlTran slator.out putSite(re quest, res ponse, exc hangeSiteS ervice); | |
| 70 | } | |
| 71 | else i f(pathInfo .endsWith( "/getSites ")) | |
| 72 | { | |
| 73 | handled = true; | |
| 74 | SiteServ iceXmlTran slator.out putSites(r equest, re sponse, ex changeSite Service); | |
| 75 | } | |
| 76 | else i f((pathInf o.endsWith ("/getVHA" )) || (pat hInfo.ends With("/get ImagingExc hangeSites "))) | |
| 77 | { | |
| 78 | handled = true; | |
| 79 | SiteServ iceXmlTran slator.out putVha(req uest, resp onse, exch angeSiteSe rvice); | |
| 80 | } | |
| 81 | else i f(pathInfo .endsWith( "/getVISN" )) | |
| 82 | { | |
| 83 | handled = true; | |
| 84 | SiteServ iceXmlTran slator.out putVisn(re quest, res ponse, exc hangeSiteS ervice); | |
| 85 | } | |
| 86 | } | |
| 87 | if(! handled) | |
| 88 | super. doGet(requ est, respo nse); | |
| 89 | } | |
| 90 | ||
| 91 | pr otected vo id reportS erviceInfo (HttpServl etResponse response, | |
| 92 | PrintW riter writ er, SOAPSe rvice serv ice, Strin g serviceN ame) | |
| 93 | { | |
| 94 | Stri ng redirec tPage = re sponse.enc odeRedirec tURL("Exch angeSiteSe rvice"); | |
| 95 | tr y | |
| 96 | { | |
| 97 | response .sendRedir ect(redire ctPage); | |
| 98 | } | |
| 99 | ca tch (IOExc eption e) | |
| 100 | { | |
| 101 | writ er.write(e .getMessag e()); | |
| 102 | logg er.error(e ); | |
| 103 | } | |
| 104 | ||
| 105 | } | |
| 106 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.