424. EPMO Open Source Coordination Office Redaction File Detail Report

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.

424.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\VixServerHealthWebApp\main\src\java\gov\va\med\imaging\vixserverhealth\web VisaConfigurationServlet.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\web VisaConfigurationServlet.java Mon Dec 4 22:07:37 2017 UTC

424.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 170
Changed 2 4
Inserted 0 0
Removed 0 0

424.3 Comparison options

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

424.4 Active regular expressions

No regular expressions were active.

424.5 Comparison detail

  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  11, 2012
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:          
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.vix serverheal th.web;
  27  
  28   import gov .va.med.im aging.heal th.VisaCon figuration ;
  29   import gov .va.med.im aging.heal th.VisaCon figuration Type;
  30  
  31   import jav a.io.IOExc eption;
  32   import jav a.io.Print Writer;
  33  
  34   import jav ax.servlet .ServletEx ception;
  35   import jav ax.servlet .http.Http Servlet;
  36   import jav ax.servlet .http.Http ServletReq uest;
  37   import jav ax.servlet .http.Http ServletRes ponse;
  38  
  39   import org .apache.lo gging.log4 j.LogManag er;
  40   import org .apache.lo gging.log4 j.Logger;
  41  
  42   /**
  43    * @author         
WERFEJ
  44    *
  45    */
  46   public cla ss VisaCon figuration Servlet
  47   extends Ht tpServlet
  48   {
  49           
  50           pr ivate stat ic final l ong serial VersionUID  = 4384305 1983233991 71L;
  51           pr ivate fina l static S tring resp onseConten tType = "t ext/xml";
  52           pr ivate fina l static L ogger logg er = LogMa nager.getL ogger(Visa Configurat ionServlet .class);
  53           
  54           @O verride
  55           pr otected vo id doGet(H ttpServlet Request re quest, Htt pServletRe sponse res ponse)
  56           th rows Servl etExceptio n, IOExcep tion
  57           {
  58                    Stri ng configu rationType  = request .getParame ter("confi gurationTy pe");
  59                    Visa Configurat ionType vi saConfigur ationType  = VisaConf igurationT ype.tomcat Lib;
  60                    if(c onfigurati onType !=  null && co nfiguratio nType.leng th() > 0)
  61                             visaCo nfiguratio nType = Vi saConfigur ationType. valueOf(co nfiguratio nType);
  62  
  63                    bool ean calcul ateChecksu m = false;
  64                    Stri ng calcula teChecksum Parameter  = request. getParamet er("checks um");
  65                    if(c alculateCh ecksumPara meter != n ull && cal culateChec ksumParame ter.length () > 0)
  66                             calcul ateChecksu m = Boolea n.parseBoo lean(calcu lateChecks umParamete r);
  67                    
  68                    resp onse.setCo ntentType( responseCo ntentType) ;
  69                    Prin tWriter ou t = respon se.getWrit er();
  70                    try
  71                    {
  72                             VisaCo nfiguratio n visaConf iguration 
  73                                               VisaConfig uration.ge tVisaConfi guration(v isaConfigu rationType ,
  74                                                                calc ulateCheck sum);
  75                             out.pr int(visaCo nfiguratio n.toXml()) ;                    
  76                             out.fl ush();
  77                             out.cl ose();
  78                    }
  79                    // j ust in cas e...
  80                    catc h(Exceptio n eX)
  81                    {
  82                             logger .error("Er ror gettin g VIX serv er health" , eX);
  83                             throw  new Servle tException (eX);
  84                    }
  85           }
  86  
  87   }