@FunctionalInterface public static interface Http.RequestMethod
Http.Method enumeration.Http.Method| Modifier and Type | Method and Description |
|---|---|
static Http.RequestMethod |
create(String name)
Create new HTTP request method instance from the provided name.
|
String |
name()
Get method name.
|
static Http.RequestMethod create(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.String name()
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.