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 javax.xml.ws.handler;
20:
21: import java.util.Map;
22:
23: public interface MessageContext extends Map<String, Object> {
24:
25: public enum Scope {
26: APPLICATION, HANDLER
27: }
28:
29: public abstract void setScope(String s, Scope scope);
30:
31: public abstract Scope getScope(String s);
32:
33: public static final String MESSAGE_OUTBOUND_PROPERTY = "javax.xml.ws.handler.message.outbound";
34: public static final String WSDL_DESCRIPTION = "javax.xml.ws.wsdl.description";
35: public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
36: public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
37: public static final String WSDL_INTERFACE = "javax.xml.ws.wsdl.interface";
38: public static final String WSDL_OPERATION = "javax.xml.ws.wsdl.operation";
39: public static final String HTTP_RESPONSE_CODE = "javax.xml.ws.http.response.code";
40: public static final String HTTP_REQUEST_HEADERS = "javax.xml.ws.http.request.headers";
41: public static final String HTTP_RESPONSE_HEADERS = "javax.xml.ws.http.response.headers";
42: public static final String HTTP_REQUEST_METHOD = "javax.xml.ws.http.request.method";
43: public static final String SERVLET_REQUEST = "javax.xml.ws.servlet.request";
44: public static final String SERVLET_RESPONSE = "javax.xml.ws.servlet.response";
45: public static final String SERVLET_CONTEXT = "javax.xml.ws.servlet.context";
46: public static final String INBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.inbound";
47: public static final String OUTBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.outbound";
48: public static final String QUERY_STRING = "javax.xml.ws.http.request.querystring";
49: public static final String PATH_INFO = "javax.xml.ws.http.request.pathinfo";
50: }
|