2496. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/10/2018 8:40:45 AM Central Daylight 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.

2496.1 Files compared

# Location File Last Modified
1 MHED_APPS_CIF.zip\VAR v4.2.7\var-resources-4.2.7@54bdc2933ef.zip\VeteranAppointmentRequestService\src\main\java\com\agilex\healthcare\directscheduling\mdws\connection SchedulingConnection.java Thu Apr 19 17:52:30 2018 UTC
2 MHED_APPS_CIF.zip\VAR v4.2.7\var-resources-4.2.7@54bdc2933ef.zip\VeteranAppointmentRequestService\src\main\java\com\agilex\healthcare\directscheduling\mdws\connection SchedulingConnection.java Thu May 3 13:07:16 2018 UTC

2496.2 Comparison summary

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

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

2496.4 Active regular expressions

No regular expressions were active.

2496.5 Comparison detail

  1   package co m.agilex.h ealthcare. directsche duling.mdw s.connecti on;
  2  
  3  
  4   import jav a.io.Seria lizable;
  5   import jav a.net.URL;
  6   import jav a.util.Dat e;
  7   import jav a.util.UUI D;
  8  
  9   import jav ax.xml.nam espace.QNa me;
  10   import jav ax.xml.ws. BindingPro vider;
  11  
  12   import org .apache.cx f.endpoint .Client;
  13   import org .apache.cx f.frontend .ClientPro xy;
  14   import org .apache.cx f.transpor t.http.HTT PConduit;
  15   import org .apache.cx f.transpor ts.http.co nfiguratio n.HTTPClie ntPolicy;
  16  
  17   import com .agilex.he althcare.d irectsched uling.mdws .generated wsdl.sched ulingservi ce.Schedul ingSvc;
  18   import com .agilex.he althcare.d irectsched uling.mdws .generated wsdl.sched ulingservi ce.Schedul ingSvcSoap ;
  19   import com .agilex.he althcare.d irectsched uling.vali dator.Mdws ResponseEx ception;
  20  
  21   import org .springfra mework.bea ns.factory .annotatio n.Value;
  22   import org .springfra mework.ste reotype.Co mponent;
  23  
  24  
  25   @Component
  26   public cla ss Schedul ingConnect ion implem ents Seria lizable {
  27  
  28       privat e static f inal long  serialVers ionUID = - 9785071598 75320587L;
  29  
  30       privat e String i d;
  31       privat e MdwsConf iguration  configurat ion;
  32       privat e Scheduli ngSvcSoap  port;
  33       privat e Date ref reshedTime stamp;
  34  
  35       public  Schedulin gConnectio n() {
  36           th is.id = UU ID.randomU UID().toSt ring();
  37       }
  38  
  39       public  Schedulin gConnectio n(Scheduli ngSvcSoap  port) {
  40           th is.id = UU ID.randomU UID().toSt ring();
  41           th is.port =  port;
  42       }
  43  
  44  
  45       public  Schedulin gConnectio n(MdwsConf iguration  configurat ion) {
  46           th is.id = UU ID.randomU UID().toSt ring();
  47           th is.configu ration = c onfigurati on;
  48           th is.port =  establishC onnection( configurat ion);
  49           th is.refresh edTimestam p = new Da te();
  50       }
  51  
  52       privat e Scheduli ngSvcSoap  establishC onnection( MdwsConfig uration co nfiguratio n) {
  53           St ring baseU rl = "";
  54  
  55           ba seUrl = co nfiguratio n.getEndPo intBaseUrl ();
  56           co nfiguratio n.setEndPo intBaseUrl (baseUrl);
  57  
  58                    Stri ng url = b aseUrl + c onfigurati on.getEndP ointUrl();
  59  
  60           UR L wsdlLoca tion = con structWsdl Url(url);
  61           Sc hedulingSv c scheduli ngSvc = nu ll;
  62           tr y {
  63                      scheduling Svc = new  Scheduling Svc(wsdlLo cation, ne w QName("h ttp:// DNS          /Schedulin gSvc", "Sc hedulingSv c"));
  64           }  catch (Thr owable t)  {
  65                             throw  new MdwsRe sponseExce ption(Mdws ResponseEx ception.Us erMessages .CONNECTIO N_ERROR, t .getMessag e());
  66                    }
  67           Sc hedulingSv cSoap port  = schedul ingSvc.get Scheduling SvcSoap();
  68  
  69           Cl ient clien t = Client Proxy.getC lient(port );
  70           HT TPConduit  http = (HT TPConduit)  client.ge tConduit() ;
  71  
  72           HT TPClientPo licy httpC lientPolic y = new HT TPClientPo licy();
  73  
  74           ht tpClientPo licy.setCo nnectionTi meout(conf iguration. getWsConne ctTimeout( ));
  75           ht tpClientPo licy.setAl lowChunkin g(false);
  76           ht tpClientPo licy.setRe ceiveTimeo ut(configu ration.get WsRequestT imeout());
  77  
  78           ht tp.setClie nt(httpCli entPolicy) ;
  79  
  80           (( BindingPro vider)port ).getReque stContext( ).put(Bind ingProvide r.ENDPOINT _ADDRESS_P ROPERTY, u rl);
  81  
  82           re turn port;
  83       }
  84  
  85       privat e URL cons tructWsdlU rl(String  endPointUr l){
  86           St ring wsdlL ocation =  endPointUr l + "?WSDL ";
  87           UR L wsdlLoca tionURL =  null;
  88           tr y {
  89                wsdlLoca tionURL =  new URL(ws dlLocation );
  90           }  catch (Exc eption e)  {
  91                    thro w new Mdws ResponseEx ception(Md wsResponse Exception. UserMessag es.INVALID _WSDL, e.g etMessage( ));
  92           }
  93  
  94           re turn wsdlL ocationURL ;
  95       }
  96  
  97       public  Date getR efreshedTi mestamp()  {
  98           re turn refre shedTimest amp;
  99       }
  100  
  101       public  void refr eshTimesta mp() {
  102           th is.refresh edTimestam p = new Da te();
  103       }
  104  
  105       public  String ge tId() {
  106           re turn id;
  107       }
  108  
  109       public  Schedulin gSvcSoap g etPort() {
  110           re turn port;
  111       }
  112  
  113       public  MdwsConfi guration g etConfigur ation() {
  114           re turn this. configurat ion;
  115       }
  116  
  117       @Overr ide
  118       public  int hashC ode() {
  119           fi nal int pr ime = 31;
  120           in t result =  1;
  121           re sult = pri me * resul t + ((id = = null) ?  0 : id.has hCode());
  122           re turn resul t;
  123       }
  124  
  125       @Overr ide
  126       public  boolean e quals(Obje ct obj) {
  127           if  (this ==  obj)
  128                return t rue;
  129           if  (obj == n ull)
  130                return f alse;
  131           if  (getClass () != obj. getClass() )
  132                return f alse;
  133           Sc hedulingCo nnection o ther = (Sc hedulingCo nnection)  obj;
  134           if  (id == nu ll) {
  135                if (othe r.id != nu ll)
  136                    retu rn false;
  137           }  else if (! id.equals( other.id))
  138                return f alse;
  139           re turn true;
  140       }
  141   }