Author: sebb
Date: Sun Oct 21 07:07:00 2007
New Revision: 586900
URL: http://svn.apache.org/viewvc?rev=586900&view=rev
Log:
Extract HTTP Constants into separate class
Added:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstants.java
(with props)
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstantsInterface.java
(with props)
Added:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstants.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstants.java?rev=586900&view=auto
==============================================================================
---
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstants.java
(added)
+++
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstants.java
Sun Oct 21 07:07:00 2007
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.jmeter.protocol.http.util;
+
+/**
+ * Constants used in HTTP, mainly header names.
+ * This is a class suitable for extending
+ * or for accessing individual constants without needing to import them all.
+ */
+
+public class HTTPConstants implements HTTPConstantsInterface {
+
+}
Propchange:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstants.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstants.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstantsInterface.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstantsInterface.java?rev=586900&view=auto
==============================================================================
---
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstantsInterface.java
(added)
+++
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstantsInterface.java
Sun Oct 21 07:07:00 2007
@@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.jmeter.protocol.http.util;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * Constants used in HTTP, mainly header names.
+ */
+
+public interface HTTPConstantsInterface {
+
+ public static final int DEFAULT_HTTPS_PORT = 443;
+ public static final int DEFAULT_HTTP_PORT = 80;
+ public static final String DEFAULT_HTTP_PORT_STRING = "80"; //
$NON-NLS-1$
+ public static final String PROTOCOL_HTTP = "http"; // $NON-NLS-1$
+ public static final String PROTOCOL_HTTPS = "https"; // $NON-NLS-1$
+ public static final String DEFAULT_PROTOCOL = PROTOCOL_HTTP;
+ public static final String HEAD = "HEAD"; // $NON-NLS-1$
+ public static final String POST = "POST"; // $NON-NLS-1$
+ public static final String PUT = "PUT"; // $NON-NLS-1$
+ public static final String GET = "GET"; // $NON-NLS-1$
+ public static final String OPTIONS = "OPTIONS"; // $NON-NLS-1$
+ public static final String TRACE = "TRACE"; // $NON-NLS-1$
+ public static final String DELETE = "DELETE"; // $NON-NLS-1$
+ public static final String HEADER_AUTHORIZATION = "Authorization"; //
$NON-NLS-1$
+ public static final String HEADER_COOKIE = "Cookie"; // $NON-NLS-1$
+ public static final String HEADER_CONNECTION = "Connection"; //
$NON-NLS-1$
+ public static final String CONNECTION_CLOSE = "close"; // $NON-NLS-1$
+ public static final String KEEP_ALIVE = "keep-alive"; // $NON-NLS-1$
+ // e.g. "Transfer-Encoding: chunked", which is processed automatically
by the underlying protocol
+ public static final String TRANSFER_ENCODING = "transfer-encoding"; //
$NON-NLS-1$
+ public static final String HEADER_CONTENT_ENCODING =
"content-encoding"; // $NON-NLS-1$
+ public static final String HTTP_1_1 = "HTTP/1.1"; // $NON-NLS-1$
+ public static final String HEADER_SET_COOKIE = "set-cookie"; //
$NON-NLS-1$
+ public static final String ENCODING_GZIP = "gzip"; // $NON-NLS-1$
+ public static final String HEADER_CONTENT_DISPOSITION =
"Content-Disposition"; // $NON-NLS-1$
+ public static final String HEADER_CONTENT_TYPE = "Content-Type"; //
$NON-NLS-1$
+ public static final String HEADER_CONTENT_LENGTH = "Content-Length"; //
$NON-NLS-1$
+ public static final String HEADER_LOCATION = "Location"; // $NON-NLS-1$
+ public static final String APPLICATION_X_WWW_FORM_URLENCODED =
"application/x-www-form-urlencoded"; // $NON-NLS-1$
+ public static final String MULTIPART_FORM_DATA = "multipart/form-data";
// $NON-NLS-1$
+
+}
Propchange:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstantsInterface.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstantsInterface.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]