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 org.apache.mina.proxy.handlers.http;
21
22 /**
23 * HttpProxyConstants.java - HTTP Proxy constants.
24 *
25 * @author <a href="http://mina.apache.org">Apache MINA Project</a>
26 * @since MINA 2.0.0-M3
27 */
28 public class HttpProxyConstants {
29
30 /**
31 * The HTTP CONNECT verb.
32 */
33 public final static String CONNECT = "CONNECT";
34
35 /**
36 * The HTTP GET verb.
37 */
38 public final static String GET = "GET";
39
40 /**
41 * The HTTP PUT verb.
42 */
43 public final static String PUT = "PUT";
44
45 /**
46 * The HTTP 1.0 protocol version string.
47 */
48 public final static String HTTP_1_0 = "HTTP/1.0";
49
50 /**
51 * The HTTP 1.1 protocol version string.
52 */
53 public final static String HTTP_1_1 = "HTTP/1.1";
54
55 /**
56 * The CRLF character sequence used in HTTP protocol to end each line.
57 */
58 public final static String CRLF = "\r\n";
59
60 /**
61 * The default keep-alive timeout we set to make proxy
62 * connection persistent. Set to 300 ms.
63 */
64 public final static String DEFAULT_KEEP_ALIVE_TIME = "300";
65
66 // ProxyRequest properties
67
68 /**
69 * The username property. Used in auth mechs.
70 */
71 public final static String USER_PROPERTY = "USER";
72
73 /**
74 * The password property. Used in auth mechs.
75 */
76 public final static String PWD_PROPERTY = "PWD";
77
78 /**
79 * The domain name property. Used in auth mechs.
80 */
81 public final static String DOMAIN_PROPERTY = "DOMAIN";
82
83 /**
84 * The workstation name property. Used in auth mechs.
85 */
86 public final static String WORKSTATION_PROPERTY = "WORKSTATION";
87 }