1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.springframework.ws.server.endpoint.interceptor;
18
19 import org.springframework.ws.context.MessageContext;
20 import org.springframework.ws.server.EndpointInterceptor;
21
22 import org.apache.commons.logging.Log;
23 import org.apache.commons.logging.LogFactory;
24 import org.w3c.dom.Element;
25
26
27
28
29
30
31
32
33 public class EndpointInterceptorAdapter implements EndpointInterceptor {
34
35
36 protected final Log logger = LogFactory.getLog(getClass());
37
38
39 public boolean understands(Element header) {
40 return false;
41 }
42
43
44
45
46
47
48 public boolean handleRequest(MessageContext messageContext, Object endpoint) throws Exception {
49 return true;
50 }
51
52
53
54
55
56
57 public boolean handleResponse(MessageContext messageContext, Object endpoint) throws Exception {
58 return true;
59 }
60
61
62
63
64
65
66 public boolean handleFault(MessageContext messageContext, Object endpoint) throws Exception {
67 return true;
68 }
69
70
71
72
73 public void afterCompletion(MessageContext messageContext, Object endpoint, Exception ex) throws Exception {
74 }
75 }