001// *************************************************************************************************************************** 002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * 003// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * 004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * 005// * with the License. You may obtain a copy of the License at * 006// * * 007// * http://www.apache.org/licenses/LICENSE-2.0 * 008// * * 009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * 010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * 011// * specific language governing permissions and limitations under the License. * 012// *************************************************************************************************************************** 013package org.apache.juneau.http; 014 015/** 016 * Represents valid HTTP 1.1 method name static strings per the RFC 2616 spec. 017 * 018 * <ul class='seealso'> 019 * <li class='extlink'>{@doc RFC2616} 020 * </ul> 021 */ 022public final class HttpMethodName { 023 024 /** {@doc RFC2616.section9#sec9.2 OPTIONS} */ 025 public static final String OPTIONS = "OPTIONS"; 026 027 /** {@doc RFC2616.section9#sec9.3 GET} */ 028 public static final String GET = "GET"; 029 030 /** {@doc RFC2616.section9#sec9.4 HEAD} */ 031 public static final String HEAD = "HEAD"; 032 033 /** {@doc RFC2616.section9#sec9.5 POST} */ 034 public static final String POST = "POST"; 035 036 /** {@doc RFC2616.section9#sec9.6 PUT} */ 037 public static final String PUT = "PUT"; 038 039 /** {@doc RFC2616.section9#sec9.7 DELETE} */ 040 public static final String DELETE = "DELETE"; 041 042 /** {@doc RFC2616.section9#sec9.8 TRACE} */ 043 public static final String TRACE = "TRACE"; 044 045 /** {@doc RFC2616.section9#sec9.9 CONNECT} */ 046 public static final String CONNECT = "CONNECT"; 047 048 /** {@doc https://tools.ietf.org/html/rfc5789 PATCH} */ 049 public static final String PATCH = "PATCH"; 050 051 /** Special case for a REST method that implements a REST-RPC interface. */ 052 public static final String RRPC = "RRPC"; 053 054 /** A non-standard value. */ 055 public static final String OTHER = "OTHER"; 056 057 /** Represents any HTTP method. */ 058 public static final String ANY = "*"; 059}