View Javadoc

1   /*
2    * Copyright 2007 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.transport.http;
18  
19  import org.springframework.ws.transport.TransportConstants;
20  
21  /**
22   * Declares HTTP-specific transport constants.
23   *
24   * @author Arjen Poutsma
25   * @since 1.0.0
26   */
27  public interface HttpTransportConstants extends TransportConstants {
28  
29      /** The "Content-Encoding" header. */
30      String HEADER_CONTENT_ENCODING = "Content-Encoding";
31  
32      /** The "Accept-Encoding" header. */
33      String HEADER_ACCEPT_ENCODING = "Accept-Encoding";
34  
35      /** Header value that indicates a compressed "Content-Encoding". */
36      String CONTENT_ENCODING_GZIP = "gzip";
37  
38      /** The "200 OK" status code. */
39      int STATUS_OK = 200;
40  
41      /** The "202 Accepted" status code. */
42      int STATUS_ACCEPTED = 202;
43  
44      /** The "204 No Content" status code. */
45      int STATUS_NO_CONTENT = 204;
46  
47      /** The "404 Not Found" status code. */
48      int STATUS_NOT_FOUND = 404;
49  
50      /** The "405 Method Not Allowed" status code. */
51      int STATUS_METHOD_NOT_ALLOWED = 405;
52  
53      /** The "500 Server Error" status code. */
54      int STATUS_INTERNAL_SERVER_ERROR = 500;
55  
56      /** The "http" URI scheme. */
57      String HTTP_URI_SCHEME = "http";
58  
59      /** The "https" URI scheme. */
60      String HTTPS_URI_SCHEME = "https";
61  
62      /** The "GET" HTTP method */
63      String METHOD_GET = "GET";
64  
65      /** The "POST" HTTP method */
66      String METHOD_POST = "POST";
67  }