01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package org.apache.axis2.jaxws.core;
20:
21: import org.apache.axis2.client.ServiceClient;
22: import org.apache.axis2.jaxws.client.async.AsyncResponse;
23:
24: import javax.xml.ws.handler.Handler;
25: import java.util.List;
26: import java.util.concurrent.Executor;
27:
28: /**
29: * The <code>InvocationContext</code> encapsulates all of the information relevant to a particular
30: * invocation. This ties the context of the request back to the context of the response message (if
31: * applicable) through the use of the MessageContext API. There is a separate MessageContext for
32: * both the request and the response. *
33: */
34: public interface InvocationContext {
35:
36: public List<Handler> getHandlers();
37:
38: public void setHandlers(List<Handler> list);
39:
40: public MessageContext getRequestMessageContext();
41:
42: public void setRequestMessageContext(MessageContext ctx);
43:
44: public MessageContext getResponseMessageContext();
45:
46: public void setResponseMessageContext(MessageContext ctx);
47:
48: public Executor getExecutor();
49:
50: public void setExecutor(Executor e);
51:
52: public AsyncResponse getAsyncResponseListener();
53:
54: public void setAsyncResponseListener(AsyncResponse al);
55:
56: //FIXME: This is temporary.
57: public void setServiceClient(ServiceClient client);
58:
59: //FIXME: This is temporary.
60: public ServiceClient getServiceClient();
61: }
|