All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.log.http.client.HttpMethod Maven / Gradle / Ivy

There is a newer version: 0.6.115
Show newest version
/**
 * Copyright (C) Alibaba Cloud Computing
 * All rights reserved.
 * 

* 版权所有 (C)阿里云计算有限公司 */ package com.aliyun.openservices.log.http.client; /** * 表示HTTP的请求方法。 * * @author xiaoming.yin */ public enum HttpMethod { /** * DELETE方法。 */ DELETE("DELETE"), /** * GET方法。 */ GET("GET"), /** * HEAD方法。 */ HEAD("HEAD"), /** * POST方法。 */ POST("POST"), /** * PUT方法。 */ PUT("PUT"), /** * OPTION方法。 */ OPTIONS("OPTIONS"); private final String text; HttpMethod(final String text) { this.text = text; } public String toString() { return this.text; } public static HttpMethod fromString(String value) { for (HttpMethod method : HttpMethod.values()) { if (method.text.equals(value)) { return method; } } throw new IllegalArgumentException("Illegal http method: " + value); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy