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 * The HTTP CONNECT verb. 31 */ 32 public static final String CONNECT = "CONNECT"; 33 34 /** 35 * The HTTP GET verb. 36 */ 37 public static final String GET = "GET"; 38 39 /** 40 * The HTTP PUT verb. 41 */ 42 public static final String PUT = "PUT"; 43 44 /** 45 * The HTTP 1.0 protocol version string. 46 */ 47 public static final String HTTP_1_0 = "HTTP/1.0"; 48 49 /** 50 * The HTTP 1.1 protocol version string. 51 */ 52 public static final String HTTP_1_1 = "HTTP/1.1"; 53 54 /** 55 * The CRLF character sequence used in HTTP protocol to end each line. 56 */ 57 public static final String CRLF = "\r\n"; 58 59 /** 60 * The default keep-alive timeout we set to make proxy 61 * connection persistent. Set to 300 ms. 62 */ 63 public static final String DEFAULT_KEEP_ALIVE_TIME = "300"; 64 65 // ProxyRequest properties 66 67 /** 68 * The username property. Used in auth mechs. 69 */ 70 public static final String USER_PROPERTY = "USER"; 71 72 /** 73 * The password property. Used in auth mechs. 74 */ 75 public static final String PWD_PROPERTY = "PWD"; 76 77 /** 78 * The domain name property. Used in auth mechs. 79 */ 80 public static final String DOMAIN_PROPERTY = "DOMAIN"; 81 82 /** 83 * The workstation name property. Used in auth mechs. 84 */ 85 public static final String WORKSTATION_PROPERTY = "WORKSTATION"; 86 87 private HttpProxyConstants() { 88 } 89 }