Produced by Araxis Merge on 12/5/2017 12:06:51 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\VixServerHealthWebApp\main\src\java\gov\va\med\imaging\vixserverhealth\taglib | VixServerHealthLocalViewTag.java | Mon Dec 4 21:34:54 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\VixServerHealthWebApp\main\src\java\gov\va\med\imaging\vixserverhealth\taglib | VixServerHealthLocalViewTag.java | Mon Dec 4 22:07:36 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 262 |
| 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: Mar 29, 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.vix serverheal th.taglib; | |
| 27 | ||
| 28 | import gov .va.med.im aging.core .FacadeRou terUtility ; | |
| 29 | import gov .va.med.im aging.heal th.VixServ erHealthSo urce; | |
| 30 | import gov .va.med.im aging.heal th.VixSite ServerHeal th; | |
| 31 | import gov .va.med.im aging.vixs erverhealt h.VixServe rHealthRou ter; | |
| 32 | import gov .va.med.im aging.vixs erverhealt h.web.VixS erverHealt hView; | |
| 33 | ||
| 34 | import jav ax.servlet .jsp.JspEx ception; | |
| 35 | import jav ax.servlet .jsp.tagex t.Tag; | |
| 36 | ||
| 37 | import org .apache.lo gging.log4 j.LogManag er; | |
| 38 | import org .apache.lo gging.log4 j.Logger; | |
| 39 | import org .springfra mework.web .servlet.s upport.Jsp AwareReque stContext; | |
| 40 | import org .springfra mework.web .servlet.s upport.Req uestContex t; | |
| 41 | ||
| 42 | /** | |
| 43 | * @author
|
|
| 44 | * | |
| 45 | */ | |
| 46 | public cla ss VixServ erHealthLo calViewTag | |
| 47 | extends Ab stractVixS erverHealt hTag | |
| 48 | { | |
| 49 | ||
| 50 | private st atic final long seri alVersionU ID = 1L; | |
| 51 | ||
| 52 | pr ivate Logg er logger = LogManag er.getLogg er(this.ge tClass()); | |
| 53 | ||
| 54 | /* * | |
| 55 | * {@link ja vax.servle t.jsp.Page Context} a ttribute f or page-le vel | |
| 56 | * {@link Re questConte xt} instan ce. | |
| 57 | * / | |
| 58 | pu blic stati c final St ring REQUE ST_CONTEXT _PAGE_ATTR IBUTE = "o rg.springf ramework.w eb.servlet .tags.REQU EST_CONTEX T"; | |
| 59 | ||
| 60 | pr ivate Requ estContext requestCo ntext; | |
| 61 | pr ivate VixS erverHealt hView vixS erverHealt hView = nu ll; | |
| 62 | ||
| 63 | /* * | |
| 64 | * Return th e current RequestCon text. | |
| 65 | * / | |
| 66 | pr otected sy nchronized final Req uestContex t getReque stContext( ) | |
| 67 | { | |
| 68 | if(t his.reques tContext = = null) | |
| 69 | { | |
| 70 | this.r equestCont ext = (Req uestContex t) this.pa geContext. getAttribu te(REQUEST _CONTEXT_P AGE_ATTRIB UTE); | |
| 71 | if (th is.request Context == null) | |
| 72 | { | |
| 73 | this.req uestContex t = new Js pAwareRequ estContext (this.page Context); | |
| 74 | this.pag eContext.s etAttribut e(REQUEST_ CONTEXT_PA GE_ATTRIBU TE, this.r equestCont ext); | |
| 75 | } | |
| 76 | } | |
| 77 | ||
| 78 | retu rn this.re questConte xt; | |
| 79 | } | |
| 80 | ||
| 81 | /* (non-Java doc) | |
| 82 | * @see gov. va.med.ima ging.vixse rverhealth .taglib.Ab stractVixS erverHealt hTag#getVi xServerHea lthView() | |
| 83 | * / | |
| 84 | @O verride | |
| 85 | pr otected Vi xServerHea lthView ge tVixServer HealthView () | |
| 86 | th rows JspEx ception | |
| 87 | { | |
| 88 | if(t his.vixSer verHealthV iew == nul l) | |
| 89 | { | |
| 90 | try | |
| 91 | { | |
| 92 | VixSer verHealthR outer rout er; | |
| 93 | try | |
| 94 | { | |
| 95 | router = FacadeRou terUtility .getFacade Router(Vix ServerHeal thRouter.c lass); | |
| 96 | } | |
| 97 | catch (Exception x) | |
| 98 | { | |
| 99 | logger.e rror("Exce ption gett ing the fa cade route r implemen tation.", x); | |
| 100 | throw ne w JspExcep tion(x); | |
| 101 | } | |
| 102 | ||
| 103 | VixSer verHealthS ource [] v ixServerHe althSource s = new Vi xServerHea lthSource [] | |
| 104 | { | |
| 105 | Vi xServerHea lthSource. custom_tom catLogs, | |
| 106 | Vi xServerHea lthSource. custom_tra nsactionLo g, | |
| 107 | Vi xServerHea lthSource. environmen t_variable s, | |
| 108 | Vi xServerHea lthSource. jmx | |
| 109 | }; | |
| 110 | ||
| 111 | VixSit eServerHea lth health = router. getLocalSi teVixSiteS erverHealt h(vixServe rHealthSou rces); | |
| 112 | vixServe rHealthVie w = new Vi xServerHea lthView(he alth); | |
| 113 | } | |
| 114 | catc h (Excepti on e) | |
| 115 | { | |
| 116 | throw new JspExc eption(e); | |
| 117 | } | |
| 118 | } | |
| 119 | ||
| 120 | re turn vixSe rverHealth View; | |
| 121 | } | |
| 122 | ||
| 123 | /* * | |
| 124 | * @se e javax.se rvlet.jsp. tagext.Tag Support#do EndTag() | |
| 125 | */ | |
| 126 | @Overr ide | |
| 127 | public int doEnd Tag() | |
| 128 | throws JspExcept ion | |
| 129 | { | |
| 130 | vi xServerHea lthView = null; | |
| 131 | return T ag.EVAL_PA GE; | |
| 132 | } | |
| 133 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.