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\mpi | MviSocketEndpoint.java | Fri Apr 21 20:03:28 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 55 |
| 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.mpi; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.c ommon.endp oint.Endpo int; | |||||
| 4 | import gov .va.nvap.c ommon.endp oint.Endpo intExcepti on; | |||||
| 5 | import gov .va.nvap.c ommon.tran sceiver.cl ient.Trans ceiver; | |||||
| 6 | import gov .va.nvap.c ommon.tran sformer.Tr ansformerE xception; | |||||
| 7 | import gov .va.nvap.c ommon.tran sformer.hl 7.ER7ToXML ; | |||||
| 8 | import gov .va.nvap.c ommon.tran sformer.xs l.XMLtoStr ing; | |||||
| 9 | ||||||
| 10 | import org .springfra mework.bea ns.factory .annotatio n.Required ; | |||||
| 11 | import org .w3c.dom.D ocument; | |||||
| 12 | ||||||
| 13 | /** | |||||
| 14 | * Manages all the c ommunicati on with th e MPI. | |||||
| 15 | * | |||||
| 16 | * @author Asha Amri traj | |||||
| 17 | */ | |||||
| 18 | public cla ss MviSock etEndpoint implement s Endpoint <Document, Document> { | |||||
| 19 | ||||||
| 20 | pr ivate ER7T oXML er7To XmlTransfo rmer; | |||||
| 21 | pr ivate Tran sceiver<St ring> sock etTranscei ver; | |||||
| 22 | pr ivate XMLt oString xm lToEr7Tran sformer; | |||||
| 23 | ||||||
| 24 | @O verride | |||||
| 25 | pu blic Docum ent invoke (final Doc ument xmlQ uery) thro ws Endpoin tException { | |||||
| 26 | ||||||
| 27 | try { | |||||
| 28 | final String er7 Query = th is.xmlToEr 7Transform er | |||||
| 29 | .transform (xmlQuery) ; | |||||
| 30 | final String er7 Response = this.sock etTranscei ver | |||||
| 31 | .transceiv e(er7Query ); | |||||
| 32 | final Document x mlResponse = this.er 7ToXmlTran sformer | |||||
| 33 | .transform (er7Respon se); | |||||
| 34 | return xmlRespon se; | |||||
| 35 | } ca tch (final Transform erExceptio n ex) { | |||||
| 36 | throw new Endpoi ntExceptio n(ex); | |||||
| 37 | } | |||||
| 38 | } | |||||
| 39 | ||||||
| 40 | @R equired | |||||
| 41 | pu blic void setEr7ToXm lTransform er(final E R7ToXML er 7ToXmlTran sformer) { | |||||
| 42 | this .er7ToXmlT ransformer = er7ToXm lTransform er; | |||||
| 43 | } | |||||
| 44 | ||||||
| 45 | @R equired | |||||
| 46 | pu blic void setSocketT ransceiver (final Tra nsceiver<S tring> soc ketTransce iver) { | |||||
| 47 | this .socketTra nsceiver = socketTra nsceiver; | |||||
| 48 | } | |||||
| 49 | ||||||
| 50 | @R equired | |||||
| 51 | pu blic void setXmlToEr 7Transform er(final X MLtoString xmlToEr7T ransformer ) { | |||||
| 52 | this .xmlToEr7T ransformer = xmlToEr 7Transform er; | |||||
| 53 | } | |||||
| 54 | ||||||
| 55 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.