01: /*
02: * Copyright 2005 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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.server;
18:
19: /**
20: * Endpoint invocation chain, consisting of an endpoint object and any preprocessing interceptors.
21: *
22: * @author Arjen Poutsma
23: * @see EndpointInterceptor
24: * @since 1.0.0
25: */
26: public class EndpointInvocationChain {
27:
28: private Object endpoint;
29:
30: private EndpointInterceptor[] interceptors;
31:
32: /**
33: * Create new <code>EndpointInvocationChain</code>.
34: *
35: * @param endpoint the endpoint object to invoke
36: */
37: public EndpointInvocationChain(Object endpoint) {
38: this .endpoint = endpoint;
39: }
40:
41: /**
42: * Create new <code>EndpointInvocationChain</code>.
43: *
44: * @param endpoint the endpoint object to invoke
45: * @param interceptors the array of interceptors to apply
46: */
47: public EndpointInvocationChain(Object endpoint,
48: EndpointInterceptor[] interceptors) {
49: this .endpoint = endpoint;
50: this .interceptors = interceptors;
51: }
52:
53: /**
54: * Returns the endpoint object to invoke.
55: *
56: * @return the endpoint object
57: */
58: public Object getEndpoint() {
59: return endpoint;
60: }
61:
62: /**
63: * Returns the array of interceptors to apply before the handler executes.
64: *
65: * @return the array of interceptors
66: */
67: public EndpointInterceptor[] getInterceptors() {
68: return interceptors;
69: }
70:
71: }
|