Produced by Araxis Merge on 6/9/2017 3:50:57 PM Eastern 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:50:57 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-server\src\main\java\gov\va\nvap\server\endpoint\permission\sls | SLSClient.java | Fri Apr 21 20:15:58 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 69 |
| 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 | package go v.va.nvap. server.end point.perm ission.sls ; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.s erver.serv ice.permis sion.sls.S ecurityLab elingServi ce; | |||||
| 4 | import jav a.io.IOExc eption; | |||||
| 5 | import jav a.net.URL; | |||||
| 6 | ||||||
| 7 | import jav ax.xml.nam espace.QNa me; | |||||
| 8 | import jav ax.xml.ws. BindingPro vider; | |||||
| 9 | import jav ax.xml.ws. Service; | |||||
| 10 | import jav ax.xml.ws. soap.MTOMF eature; | |||||
| 11 | ||||||
| 12 | import org .slf4j.Log gerFactory ; | |||||
| 13 | ||||||
| 14 | ||||||
| 15 | /** | |||||
| 16 | * | |||||
| 17 | * @author john.croo ks | |||||
| 18 | * | |||||
| 19 | * Connect s to SOAP Service pr ovided by the SLS fo r the labe ling of | |||||
| 20 | * a patie nts concat enated C-C DA CCD fil e. This se rvice retu rns XML | |||||
| 21 | * contain ing the pa tients hig h-water ma rk confide ntiality c ode. | |||||
| 22 | */ | |||||
| 23 | public cla ss SLSClie nt | |||||
| 24 | { | |||||
| 25 | privat e static f inal Strin g WSDL_RSR C = | |||||
| 26 | "/ META-INF/x ml-resourc es/web-ser vices/Secu rityLabeli ngService/ SecurityLa belingServ ice.wsdl"; | |||||
| 27 | privat e static f inal QName SLS_QNAME = new QNa me( | |||||
| 28 | "h ttp://sls. permission .service.s erver.nvap .va.gov/", "Security LabelingSe rvice"); | |||||
| 29 | ||||||
| 30 | //**** | |||||
| 31 | // Pro perties th at should be set by Spring con figuration . | |||||
| 32 | //**** | |||||
| 33 | privat e String e ndPointURL ; | |||||
| 34 | privat e static f inal org.s lf4j.Logge r LOGGER = | |||||
| 35 | Lo ggerFactor y.getLogge r(SLSClien t.class); | |||||
| 36 | ||||||
| 37 | public String ev alConfiden tialityCod e(byte[] p atientXML) throws IO Exception | |||||
| 38 | { | |||||
| 39 | UR L wsdlURL = SLSClien t.class.ge tResource( WSDL_RSRC) ; | |||||
| 40 | ||||||
| 41 | // create th e service | |||||
| 42 | Se rvice serv ice = Serv ice.create (wsdlURL, SLS_QNAME) ; | |||||
| 43 | Se curityLabe lingServic e sls = se rvice.getP ort(Securi tyLabeling Service.cl ass, new M TOMFeature ()); | |||||
| 44 | ||||||
| 45 | // get the bi nding and enable MTO M | |||||
| 46 | Bi ndingProvi der bindin gProvider = (Binding Provider) sls; | |||||
| 47 | bi ndingProvi der.getReq uestContex t().put(Bi ndingProvi der.ENDPOI NT_ADDRESS _PROPERTY, endPointU RL); | |||||
| 48 | ||||||
| 49 | // hit the S LS | |||||
| 50 | St ring patie ntReturnDa ta = sls.e valConfide ntialityCo de(patient XML); | |||||
| 51 | ||||||
| 52 | // Log the Da ta Coming back from SLS | |||||
| 53 | if (patientRe turnData!= null) | |||||
| 54 | { | |||||
| 55 | LOGGER.d ebug("Secu rity Label ing Servic e was call ed succesf ully and r eturned: " + patient ReturnData ); | |||||
| 56 | } | |||||
| 57 | el se | |||||
| 58 | { | |||||
| 59 | LOGGER.d ebug("Null Value Ret urned from Security Labeling S ervice"); | |||||
| 60 | } | |||||
| 61 | ||||||
| 62 | re turn patie ntReturnDa ta; | |||||
| 63 | } | |||||
| 64 | ||||||
| 65 | public void setE ndPointURL (String s) | |||||
| 66 | { | |||||
| 67 | en dPointURL = s; | |||||
| 68 | } | |||||
| 69 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.