You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2010/01/28 17:07:11 UTC

svn commit: r904144 - in /labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/descriptors: ./ HTTPMethod.java

Author: simonetripodi
Date: Thu Jan 28 16:07:10 2010
New Revision: 904144

URL: http://svn.apache.org/viewvc?rev=904144&view=rev
Log:
first checkin of HTTPMethod enumeration

Added:
    labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/descriptors/
    labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/descriptors/HTTPMethod.java   (with props)

Added: labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/descriptors/HTTPMethod.java
URL: http://svn.apache.org/viewvc/labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/descriptors/HTTPMethod.java?rev=904144&view=auto
==============================================================================
--- labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/descriptors/HTTPMethod.java (added)
+++ labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/descriptors/HTTPMethod.java Thu Jan 28 16:07:10 2010
@@ -0,0 +1,69 @@
+/*
+ * 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.labs.amber.signature.descriptors;
+
+/**
+ * Enumeration of available <i>HTTP</i> methods.
+ *
+ * Enumerates methods are defined in
+ * <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html">HTTP/1.1: Method Definitions</a>.
+ *
+ * @version $Id$
+ */
+public enum HTTPMethod {
+
+    /**
+     * The {@code HEAD} HTTP method.
+     */
+    HEAD,
+
+    /**
+     * The {@code POST} HTTP method.
+     */
+    POST,
+
+    /**
+     * The {@code PUT} HTTP method.
+     */
+    PUT,
+
+    /**
+     * The {@code GET} HTTP method.
+     */
+    GET,
+
+    /**
+     * The {@code DELETE} HTTP method.
+     */
+    DELETE,
+
+    /**
+     * The {@code OPTIONS} HTTP method.
+     */
+    OPTIONS,
+
+    /**
+     * The {@code TRACE} HTTP method.
+     */
+    TRACE,
+
+    /**
+     * The {@code CONNECT} HTTP method.
+     */
+    CONNECT;
+
+}

Propchange: labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/descriptors/HTTPMethod.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/descriptors/HTTPMethod.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: labs/amber/signature-api/src/main/java/org/apache/labs/amber/signature/descriptors/HTTPMethod.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org