1   /*
2    * Copyright 2005-2013 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.springframework.ws.config;
18  
19  import org.springframework.beans.factory.annotation.Autowired;
20  import org.springframework.ws.context.MessageContext;
21  import org.springframework.ws.server.EndpointInterceptor;
22  
23  public class DummyInterceptor implements EndpointInterceptor {
24  
25  	@Autowired
26  	private DummyInterceptorDependency autowiredDependency;
27  
28  	private DummyInterceptorDependency propertyDependency;
29  
30  	public void setPropertyDependency(DummyInterceptorDependency propertyDependency) {
31  		this.propertyDependency = propertyDependency;
32  	}
33  
34  	public DummyInterceptorDependency getPropertyDependency() {
35  		return propertyDependency;
36  	}
37  
38  	public DummyInterceptorDependency getAutowiredDependency() {
39  		return autowiredDependency;
40  	}
41  
42  	public boolean handleRequest(MessageContext messageContext, Object endpoint)
43  			throws Exception {
44  		return true;
45  	}
46  
47  	public boolean handleResponse(MessageContext messageContext, Object endpoint)
48  			throws Exception {
49  		return true;
50  	}
51  
52  	public boolean handleFault(MessageContext messageContext, Object endpoint)
53  			throws Exception {
54  		return true;
55  	}
56  
57  	public void afterCompletion(MessageContext messageContext, Object endpoint,
58  			Exception ex) throws Exception {
59  	}
60  }