25. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/5/2017 12:06:34 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.

25.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\AxWebApp\main\src\java\gov\va\med\imaging\ax AxContext.java Mon Dec 4 21:34:50 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\AxWebApp\main\src\java\gov\va\med\imaging\ax AxContext.java Mon Dec 4 21:57:02 2017 UTC

25.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 160
Changed 1 2
Inserted 0 0
Removed 0 0

25.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

25.4 Active regular expressions

No regular expressions were active.

25.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.i maging.ax;
  5  
  6   import gov .va.med.im aging.core .FacadeRou terUtility ;
  7   import gov .va.med.im aging.core .interface s.IAppConf iguration;
  8   import gov .va.med.im aging.tran sactioncon text.Trans actionCont ext;
  9   import gov .va.med.im aging.tran sactioncon text.Trans actionCont extFactory ;
  10  
  11   import jav ax.servlet .http.Http ServletRes ponse;
  12  
  13   import org .apache.lo gging.log4 j.LogManag er;
  14   import org .apache.lo gging.log4 j.Logger;
  15  
  16   import org .springfra mework.bea ns.BeansEx ception;
  17   import org .springfra mework.con text.Appli cationCont ext;
  18   import org .springfra mework.con text.Appli cationCont extAware;
  19  
  20   /**
  21    * @author   DNS  TITTOC
  22    *
  23    */
  24   public cla ss AxConte xt
  25   implements  Applicati onContextA ware 
  26   {
  27  
  28           pr ivate stat ic Applica tionContex t appConte xt;
  29           pr ivate stat ic Logger  logger = L ogManager. getLogger( AxContext. class);
  30  
  31           pr ivate IApp Configurat ion appCon figuration  = null;
  32           
  33           pr ivate stat ic AxConte xt imaging Context;
  34           
  35           /*  (non-Java doc)
  36            *  @see org. springfram ework.cont ext.Applic ationConte xtAware#se tApplicati onContext( org.spring framework. context.Ap plicationC ontext)
  37            * /
  38           @O verride
  39           pu blic void  setApplica tionContex t(Applicat ionContext  context)
  40                             throws  BeansExce ption {
  41                    appC ontext = c ontext;
  42           }
  43           
  44           pu blic stati c AxWebApp Router get AxRouter()
  45           {
  46                    AxWe bAppRouter  router =  null;
  47                    Tran sactionCon text trans actionCont ext = Tran sactionCon textFactor y.get();
  48                    try
  49                    {
  50                             router  = FacadeR outerUtili ty.getFaca deRouter(A xWebAppRou ter.class) ;
  51                    } 
  52                    catc h (Excepti on x)
  53                    {
  54                             String  msg = "Er ror gettin g AxWebApp Router ins tance.  Ap plication  deployment  is probab ly incorre ct.";                      
  55                             Transa ctionConte xtFactory. get().setE rrorMessag e(msg + "\ n" + x.get Message()) ;
  56                             logger .error(msg , x);
  57                             transa ctionConte xt.setExce ptionClass Name(x.get Class().ge tSimpleNam e());
  58                             transa ctionConte xt.setResp onseCode(H ttpServlet Response.S C_CONFLICT  + "");
  59                    }
  60                    retu rn router;
  61           }        
  62           
  63           pr ivate stat ic void in itializeIm agingConte xt()
  64           {
  65                    if(i magingCont ext == nul l)
  66                    {
  67                             imagin gContext =  new AxCon text();
  68                    }                 
  69           }
  70           
  71           pu blic stati c synchron ized IAppC onfigurati on getAppC onfigurati on()
  72           {
  73                    init ializeImag ingContext ();
  74                    if(i magingCont ext.appCon figuration  == null)
  75                    {
  76                             Object  appConfig Obj = appC ontext.get Bean("appC onfigurati on");
  77                             imagin gContext.a ppConfigur ation = (I AppConfigu ration)app ConfigObj;                         
  78                    }
  79                    retu rn imaging Context.ap pConfigura tion;
  80           }
  81   }