Http.Methodpublic static interface Http.RequestMethod
Http.Method enumeration.Http.Method| Modifier and Type | Method | Description |
|---|---|---|
static Http.RequestMethod |
from(String name) |
Create new HTTP request method instance from the provided name.
|
String |
name() |
Get method name.
|
String name()
static Http.RequestMethod from(String name)
In case the method name is recognized as one of the standard HTTP methods, the respective enumeration
value is returned.
name - the method name. Must not be null or empty and must be a legal HTTP method name string.IllegalArgumentException - In case of illegal method name or in case the name is empty or null.Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.