View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements. See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership. The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License. You may obtain a copy of the License at
9    *
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  
20  package javax.xml.ws.handler;
21  
22  import java.util.Map;
23  
24  public interface MessageContext extends Map<String, Object> {
25  
26      public enum Scope {
27          APPLICATION,  
28          HANDLER
29      }
30  
31      public abstract void setScope(String s, Scope scope);
32  
33      public abstract Scope getScope(String s);
34  
35      public static final String MESSAGE_OUTBOUND_PROPERTY = "javax.xml.ws.handler.message.outbound";
36      public static final String WSDL_DESCRIPTION = "javax.xml.ws.wsdl.description";
37      public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
38      public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
39      public static final String WSDL_INTERFACE = "javax.xml.ws.wsdl.interface";
40      public static final String WSDL_OPERATION = "javax.xml.ws.wsdl.operation";
41      public static final String HTTP_RESPONSE_CODE = "javax.xml.ws.http.response.code";
42      public static final String REFERENCE_PARAMETERS = "javax.xml.ws.reference.parameters";
43      public static final String HTTP_REQUEST_HEADERS = "javax.xml.ws.http.request.headers";
44      public static final String HTTP_RESPONSE_HEADERS = "javax.xml.ws.http.response.headers";
45      public static final String HTTP_REQUEST_METHOD = "javax.xml.ws.http.request.method";
46      public static final String SERVLET_REQUEST = "javax.xml.ws.servlet.request";
47      public static final String SERVLET_RESPONSE = "javax.xml.ws.servlet.response";
48      public static final String SERVLET_CONTEXT = "javax.xml.ws.servlet.context";
49      public static final String INBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.inbound";
50      public static final String OUTBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.outbound";
51      public static final String QUERY_STRING = "javax.xml.ws.http.request.querystring";
52      public static final String PATH_INFO = "javax.xml.ws.http.request.pathinfo"; 
53  }