Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.protocol.http.util » [javadoc | source]
    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *   http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    * Unless required by applicable law or agreed to in writing, software
   12    * distributed under the License is distributed on an "AS IS" BASIS,
   13    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    * See the License for the specific language governing permissions and
   15    * limitations under the License.
   16    *
   17    */
   18   
   19   package org.apache.jmeter.protocol.http.util;
   20   
   21   
   22   /**
   23    * Constants used in HTTP, mainly header names.
   24    */
   25   
   26   public interface HTTPConstantsInterface {
   27   
   28       public static final int DEFAULT_HTTPS_PORT = 443;
   29       public static final String DEFAULT_HTTPS_PORT_STRING = "443"; // $NON-NLS-1$
   30       public static final int    DEFAULT_HTTP_PORT = 80;
   31       public static final String DEFAULT_HTTP_PORT_STRING = "80"; // $NON-NLS-1$
   32       public static final String PROTOCOL_HTTP = "http"; // $NON-NLS-1$
   33       public static final String PROTOCOL_HTTPS = "https"; // $NON-NLS-1$
   34       public static final String HEAD = "HEAD"; // $NON-NLS-1$
   35       public static final String POST = "POST"; // $NON-NLS-1$
   36       public static final String PUT = "PUT"; // $NON-NLS-1$
   37       public static final String GET = "GET"; // $NON-NLS-1$
   38       public static final String OPTIONS = "OPTIONS"; // $NON-NLS-1$
   39       public static final String TRACE = "TRACE"; // $NON-NLS-1$
   40       public static final String DELETE = "DELETE"; // $NON-NLS-1$
   41       public static final String HEADER_AUTHORIZATION = "Authorization"; // $NON-NLS-1$
   42       public static final String HEADER_COOKIE = "Cookie"; // $NON-NLS-1$
   43       public static final String HEADER_CONNECTION = "Connection"; // $NON-NLS-1$
   44       public static final String CONNECTION_CLOSE = "close"; // $NON-NLS-1$
   45       public static final String KEEP_ALIVE = "keep-alive"; // $NON-NLS-1$
   46       // e.g. "Transfer-Encoding: chunked", which is processed automatically by the underlying protocol
   47       public static final String TRANSFER_ENCODING = "transfer-encoding"; // $NON-NLS-1$
   48       public static final String HEADER_CONTENT_ENCODING = "content-encoding"; // $NON-NLS-1$
   49       public static final String HTTP_1_1 = "HTTP/1.1"; // $NON-NLS-1$
   50       public static final String HEADER_SET_COOKIE = "set-cookie"; // $NON-NLS-1$
   51       public static final String ENCODING_GZIP = "gzip"; // $NON-NLS-1$
   52       public static final String HEADER_CONTENT_DISPOSITION = "Content-Disposition"; // $NON-NLS-1$
   53       public static final String HEADER_CONTENT_TYPE = "Content-Type"; // $NON-NLS-1$
   54       public static final String HEADER_CONTENT_LENGTH = "Content-Length"; // $NON-NLS-1$
   55       public static final String HEADER_LOCATION = "Location"; // $NON-NLS-1$
   56       public static final String APPLICATION_X_WWW_FORM_URLENCODED = "application/x-www-form-urlencoded"; // $NON-NLS-1$
   57       public static final String MULTIPART_FORM_DATA = "multipart/form-data"; // $NON-NLS-1$
   58       // For handling caching
   59       public static final String IF_NONE_MATCH = "If-None-Match"; // $NON-NLS-1$
   60       public static final String IF_MODIFIED_SINCE = "If-Modified-Since"; // $NON-NLS-1$
   61       public static final String ETAG = "Etag"; // $NON-NLS-1$
   62       public static final String LAST_MODIFIED = "Last-Modified"; // $NON-NLS-1$
   63   
   64   }

Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.protocol.http.util » [javadoc | source]