001/*
002 *  Licensed to the Apache Software Foundation (ASF) under one
003 *  or more contributor license agreements.  See the NOTICE file
004 *  distributed with this work for additional information
005 *  regarding copyright ownership.  The ASF licenses this file
006 *  to you under the Apache License, Version 2.0 (the
007 *  "License"); you may not use this file except in compliance
008 *  with the License.  You may obtain a copy of the License at
009 *
010 *    http://www.apache.org/licenses/LICENSE-2.0
011 *
012 *  Unless required by applicable law or agreed to in writing,
013 *  software distributed under the License is distributed on an
014 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 *  KIND, either express or implied.  See the License for the
016 *  specific language governing permissions and limitations
017 *  under the License.
018 *
019 */
020package org.apache.mina.proxy.handlers.http;
021
022/**
023 * HttpProxyConstants.java - HTTP Proxy constants.
024 * 
025 * @author <a href="http://mina.apache.org">Apache MINA Project</a>
026 * @since MINA 2.0.0-M3
027 */
028public class HttpProxyConstants {
029
030    /**
031     * The HTTP CONNECT verb.
032     */
033    public final static String CONNECT = "CONNECT";
034
035    /**
036     * The HTTP GET verb.
037     */
038    public final static String GET = "GET";
039
040    /**
041     * The HTTP PUT verb.
042     */
043    public final static String PUT = "PUT";
044
045    /**
046     * The HTTP 1.0 protocol version string.
047     */
048    public final static String HTTP_1_0 = "HTTP/1.0";
049
050    /**
051     * The HTTP 1.1 protocol version string.
052     */
053    public final static String HTTP_1_1 = "HTTP/1.1";
054
055    /**
056     * The CRLF character sequence used in HTTP protocol to end each line.
057     */
058    public final static String CRLF = "\r\n";
059
060    /**
061     * The default keep-alive timeout we set to make proxy
062     * connection persistent. Set to 300 ms.
063     */
064    public final static String DEFAULT_KEEP_ALIVE_TIME = "300";
065
066    // ProxyRequest properties
067
068    /**
069     * The username property. Used in auth mechs.
070     */
071    public final static String USER_PROPERTY = "USER";
072
073    /**
074     * The password property. Used in auth mechs.
075     */
076    public final static String PWD_PROPERTY = "PWD";
077
078    /**
079     * The domain name property. Used in auth mechs.
080     */
081    public final static String DOMAIN_PROPERTY = "DOMAIN";
082
083    /**
084     * The workstation name property. Used in auth mechs.
085     */
086    public final static String WORKSTATION_PROPERTY = "WORKSTATION";
087}