Produced by Araxis Merge on 8/1/2019 1:42:44 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 | JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler | SOAPLoggingHandler.java | Mon Jul 8 18:58:50 2019 UTC |
2 | JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler | SOAPLoggingHandler.java | Wed Jul 31 23:50:15 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 182 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
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 | /* | |
2 | * Janus 4 .0 (c) | |
3 | * Copyrig ht (c) 201 2 Hawaii R esource Gr oup LLC. A ll Rights Reserved. | |
4 | * Develop ed for the Pacific T elehealth & Technolo gy Hui and the Pacif ic Joint I nformation Technolog y Center | |
5 | * Contrib utors: | |
6 | * Ho norable Se nator Dani el K. Inou ye | |
7 | * VA Pacific I slands Hea lth Care S ystem | |
8 | * Tr ipler Army Medical C enter | |
9 | */ | |
10 | ||
11 | package go v.va.med.j meadows.da taserviceh andler; | |
12 | ||
13 | /** | |
14 | * Created with Inte lliJ IDEA. | |
15 | * User: DNS | |
16 | * Date: 9 /20/12 | |
17 | * Time: 1 1:29 AM | |
18 | * To chan ge this te mplate use File | Se ttings | F ile Templa tes. | |
19 | */ | |
20 | ||
21 | import org .slf4j.Log ger; | |
22 | import org .slf4j.Log gerFactory ; | |
23 | ||
24 | import jav ax.xml.nam espace.QNa me; | |
25 | import jav ax.xml.soa p.SOAPExce ption; | |
26 | import jav ax.xml.soa p.SOAPMess age; | |
27 | import jav ax.xml.ws. handler.Me ssageConte xt; | |
28 | import jav ax.xml.ws. handler.so ap.SOAPHan dler; | |
29 | import jav ax.xml.ws. handler.so ap.SOAPMes sageContex t; | |
30 | import jav a.io.ByteA rrayOutput Stream; | |
31 | import jav a.io.IOExc eption; | |
32 | import jav a.util.Set ; | |
33 | ||
34 | /* | |
35 | * This si mple SOAPH andler wil l output t he content s of incom ing | |
36 | * and out going mess ages. | |
37 | */ | |
38 | public cla ss SOAPLog gingHandle r implemen ts SOAPHan dler<SOAPM essageCont ext> { | |
39 | ||
40 | privat e static f inal Logge r LOGGER = LoggerFac tory.getLo gger(SOAPL oggingHand ler.class) ; | |
41 | ||
42 | public Set<QName > getHeade rs() { | |
43 | re turn null; | |
44 | } | |
45 | ||
46 | public boolean h andleMessa ge(SOAPMes sageContex t smc) { | |
47 | lo gToSystemO ut(smc); | |
48 | re turn true; | |
49 | } | |
50 | ||
51 | public boolean h andleFault (SOAPMessa geContext smc) { | |
52 | lo gToSystemO ut(smc); | |
53 | re turn true; | |
54 | } | |
55 | ||
56 | public void clos e(MessageC ontext mes sageContex t) { | |
57 | // nothing t o clean up | |
58 | } | |
59 | ||
60 | /* | |
61 | * Che ck the MES SAGE_OUTBO UND_PROPER TY in the context | |
62 | * to see if thi s is an ou tgoing or incoming m essage. | |
63 | * Wri te a brief message t o the prin t stream a nd | |
64 | * out put the me ssage. The writeTo() method ca n throw | |
65 | * SOA PException or IOExce ption | |
66 | */ | |
67 | privat e void log ToSystemOu t(SOAPMess ageContext smc) { | |
68 | Bo olean outb oundProper ty = (Bool ean) | |
69 | smc. get(Messag eContext.M ESSAGE_OUT BOUND_PROP ERTY); | |
70 | ||
71 | if (outbound Property.b ooleanValu e()) { | |
72 | LOGGER.d ebug("Outb ound messa ge:"); | |
73 | } else { | |
74 | LOGGER.d ebug("Inbo und messag e:"); | |
75 | } | |
76 | ||
77 | tr y { | |
78 | SOAPMess age messag e = smc.ge tMessage() ; | |
79 | ||
80 | ByteArra yOutputStr eam stream = new Byt eArrayOutp utStream() ; | |
81 | message. writeTo(st ream); | |
82 | ||
83 | LOGGER.d ebug(strea m.toString ("UTF-8")) ; | |
84 | } catch (SOA PException e) { | |
85 | //logger .error("SO APExceptio n: ", e ); | |
86 | LOGGER.e rror(e.get Message(), e); | |
87 | } catch (IOE xception e ) { | |
88 | //logger .error("IO Exception: ", e ); | |
89 | LOGGER.e rror(e.get Message(), e); | |
90 | } | |
91 | } | |
92 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.