Package discord4j.rest.route
Class Route
java.lang.Object
discord4j.rest.route.Route
Provides a mapping between a Discord API endpoint and its response type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Route
boolean
static Route
Return the HTTP method for this route.Return the URI template that defines this route.int
hashCode()
newRequest
(Object... uriVars) Prepare a request, expanding this route template URI with the given parameters.static Route
static Route
static Route
toString()
-
Method Details
-
get
-
post
-
put
-
patch
-
delete
-
getMethod
Return the HTTP method for this route.- Returns:
- the
HttpMethod
of thisRoute
-
newRequest
Prepare a request, expanding this route template URI with the given parameters.- Parameters:
uriVars
- the values to expand each template parameter- Returns:
- a request that is ready to be routed
- See Also:
-
getUriTemplate
Return the URI template that defines this route.- Returns:
- a URI template, probably containing path parameters, that is defining this
Route
-
hashCode
public int hashCode() -
equals
-
toString
-