1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.module.cxf.feature; |
8 | |
|
9 | |
import java.io.PrintWriter; |
10 | |
|
11 | |
import org.apache.cxf.interceptor.LoggingInInterceptor; |
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
public class PrettyLoggingInInterceptor extends LoggingInInterceptor |
19 | |
{ |
20 | |
public PrettyLoggingInInterceptor() |
21 | |
{ |
22 | 0 | super(); |
23 | 0 | } |
24 | |
|
25 | |
public PrettyLoggingInInterceptor(String phase) |
26 | |
{ |
27 | 0 | super(phase); |
28 | 0 | } |
29 | |
|
30 | |
public PrettyLoggingInInterceptor(int lim) |
31 | |
{ |
32 | 0 | super(lim); |
33 | 0 | } |
34 | |
|
35 | |
public PrettyLoggingInInterceptor(PrintWriter w) |
36 | |
{ |
37 | 0 | super(w); |
38 | 0 | } |
39 | |
|
40 | |
@Override |
41 | |
protected String transform(String originalLogString) |
42 | |
{ |
43 | 0 | return PrettyLoggingFeature.formatXmlPayload(originalLogString); |
44 | |
} |
45 | |
} |