Produced by Araxis Merge on 6/9/2017 3:51:24 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:51:24 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-svc-notification\src\main\java\gov\va\nvap\notification\jmsutilities | VapJMSPublisher.java | Fri Apr 21 20:03:30 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 94 |
| 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. notificati on.jmsutil ities; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.n otificatio n.interfac es.VapPubl isher; | |||||
| 4 | ||||||
| 5 | import jav a.io.Seria lizable; | |||||
| 6 | import jav a.util.Has hMap; | |||||
| 7 | import jav a.util.Has hSet; | |||||
| 8 | import jav a.util.Map ; | |||||
| 9 | import jav a.util.Set ; | |||||
| 10 | ||||||
| 11 | import org .springfra mework.bea ns.factory .annotatio n.Required ; | |||||
| 12 | import org .springfra mework.jms .core.JmsT emplate; | |||||
| 13 | ||||||
| 14 | ||||||
| 15 | public cla ss VapJMSP ublisher i mplements VapPublish er { | |||||
| 16 | ||||||
| 17 | pr otected Jm sTemplate jmsTemplat e; | |||||
| 18 | pr otected Se t<String> pubIdentif iers = new HashSet<S tring>(); | |||||
| 19 | pr otected Se t<String> subIdentif iers = new HashSet<S tring>(); | |||||
| 20 | St ring ident ifierKey = "identifi ers"; // i nject with spring if | |||||
| 21 | // des ired | |||||
| 22 | St ring objec tKey = "ob ject";// i nject with spring if desired | |||||
| 23 | St ring xmlKe y = "xml"; // inject with sprin g if desir ed | |||||
| 24 | St ring trigg er = "trig ger";// in ject with spring if desired | |||||
| 25 | ||||||
| 26 | // private st atic final Log LOG = LogFactor y.getLog(V apJMSPubli sher.class ); | |||||
| 27 | ||||||
| 28 | ||||||
| 29 | pu blic void setPubMess ageIdentif iers(Set<S tring> ide ntifier) { | |||||
| 30 | this .pubIdenti fiers = id entifier; | |||||
| 31 | } | |||||
| 32 | ||||||
| 33 | @R equired | |||||
| 34 | pu blic void setJmsTemp late(final JmsTempla te jmsTemp late) { | |||||
| 35 | this .jmsTempla te = jmsTe mplate; | |||||
| 36 | } | |||||
| 37 | ||||||
| 38 | pu blic void setIdentif ierKey(Str ing identi fierKey) { | |||||
| 39 | this .identifie rKey = ide ntifierKey ; | |||||
| 40 | } | |||||
| 41 | ||||||
| 42 | pu blic void setObjectK ey(String objectKey) { | |||||
| 43 | this .objectKey = objectK ey; | |||||
| 44 | } | |||||
| 45 | ||||||
| 46 | pu blic void setXmlKey( String xml Key) { | |||||
| 47 | this .xmlKey = xmlKey; | |||||
| 48 | } | |||||
| 49 | ||||||
| 50 | pu blic void setTrigger (String tr igger) { | |||||
| 51 | this .trigger = trigger; | |||||
| 52 | } | |||||
| 53 | ||||||
| 54 | pr ivate void publishOb ject(Seria lizable me ssage, Map <String,Ob ject> prop s) { | |||||
| 55 | jmsT emplate.se nd(new Vap JMSMessage Creator(th is, messag e, pubIden tifiers, p rops)); | |||||
| 56 | } | |||||
| 57 | ||||||
| 58 | pr ivate void publishXM L(String x ml, Map<St ring,Objec t> props) { | |||||
| 59 | jmsT emplate.se nd(new Vap JMSMessage Creator(th is, xml, p ubIdentifi ers,props) ); | |||||
| 60 | } | |||||
| 61 | ||||||
| 62 | @O verride | |||||
| 63 | pu blic void publishObj ect(VapTri ggerEvent trigger, S erializabl e message) { | |||||
| 64 | publ ishObject( message,ev entToProps (trigger)) ; | |||||
| 65 | } | |||||
| 66 | ||||||
| 67 | @O verride | |||||
| 68 | pu blic void publishXML (VapTrigge rEvent tri gger, Stri ng xml) { | |||||
| 69 | publ ishXML(xml ,eventToPr ops(trigge r)); | |||||
| 70 | } | |||||
| 71 | ||||||
| 72 | @O verride | |||||
| 73 | pu blic void publishObj ect(VapTri ggerEvent trigger, S erializabl e message, | |||||
| 74 | Map<St ring, Obje ct> props) { | |||||
| 75 | prop s = new Ha shMap<Stri ng,Object> (props); | |||||
| 76 | prop s.putAll(e ventToProp s(trigger) ); | |||||
| 77 | publ ishObject( message,pr ops); | |||||
| 78 | } | |||||
| 79 | ||||||
| 80 | @O verride | |||||
| 81 | pu blic void publishXML (VapTrigge rEvent tri gger, Stri ng xml, | |||||
| 82 | Map<St ring, Obje ct> props) { | |||||
| 83 | prop s = new Ha shMap<Stri ng,Object> (props); | |||||
| 84 | prop s.putAll(e ventToProp s(trigger) ); | |||||
| 85 | publ ishXML(xml ,props); | |||||
| 86 | ||||||
| 87 | } | |||||
| 88 | ||||||
| 89 | pr ivate Map< String,Obj ect> event ToProps(Va pTriggerEv ent trigge r) { | |||||
| 90 | Map< String,Obj ect> m = n ew HashMap <String,Ob ject>(); | |||||
| 91 | m.pu t(this.tri gger,trigg er.toStrin g()); | |||||
| 92 | retu rn m; | |||||
| 93 | } | |||||
| 94 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.