public interface QueryParameters
Represents the query parameters of a request.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether a parameter with the specified name is present.Returns the query parameter with the specified name.getAll()
Returns all query parameters sent in the request.Returns all query parameters with the specified name.getNames()
Returns the names of the query parameters sent in the request.
-
Method Details
-
contains
Determines whether a parameter with the specified name is present.
- Parameters:
name
- a query parameter name- Returns:
- true if a parameter is present, false otherwise
-
getNames
Returns the names of the query parameters sent in the request.
- Returns:
- a list of header names
-
get
Returns the query parameter with the specified name.
If there are multiple parameters with the same name, this method returns the first one.
- Parameters:
name
- a query parameter name- Returns:
- an optional returning the parameter or an empty optional if there's no parameter with the specified name
-
getAll
Returns all query parameters with the specified name.
- Parameters:
name
- a query parameter name- Returns:
- a list of parameters or an empty list if there's no parameter with the specified name
-
getAll
Returns all query parameters sent in the request.
- Returns:
- the parameters grouped by name
-