T - the response typepublic class Route<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Route<T> |
delete(String uri,
Class<T> responseType) |
boolean |
equals(Object obj) |
static <T> Route<T> |
get(String uri,
Class<T> responseType) |
HttpMethod |
getMethod()
Return the HTTP method for this route.
|
Class<T> |
getResponseType()
Return the route's response type.
|
String |
getUriTemplate()
Return the URI template that defines this route.
|
int |
hashCode() |
DiscordRequest<T> |
newRequest(Object... uriVars)
Prepare a request, expanding this route template URI with the given parameters.
|
static <T> Route<T> |
patch(String uri,
Class<T> responseType) |
static <T> Route<T> |
post(String uri,
Class<T> responseType) |
static <T> Route<T> |
put(String uri,
Class<T> responseType) |
String |
toString() |
public HttpMethod getMethod()
HttpMethod of this Routepublic DiscordRequest<T> newRequest(Object... uriVars)
uriVars - the values to expand each template parameterDiscordRequest.exchange(discord4j.rest.request.Router)public String getUriTemplate()
Route