Http.Method@FunctionalInterface
public static interface Http.RequestMethod
Http.Method enumeration.Http.Method| Modifier and Type | Method | Description |
|---|---|---|
static Http.RequestMethod |
from(java.lang.String name) |
Create new HTTP request method instance from the provided name.
|
java.lang.String |
name() |
Get method name.
|
static Http.RequestMethod from(java.lang.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.java.lang.IllegalArgumentException - In case of illegal method name or in case the name is empty or null.java.lang.String name()
Copyright © 2018 Oracle Corporation. All rights reserved.