Package io.varhttp
Class RequestParametersImplementation
java.lang.Object
io.varhttp.RequestParametersImplementation
- All Implemented Interfaces:
RequestParameters
-
Constructor Summary
ConstructorsConstructorDescriptionRequestParametersImplementation
(jakarta.servlet.http.HttpServletRequest request) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if request has a parameter with nameReturns first value of the parameterReturns all the values of the parametergetMap()
Map view of request parameters
-
Constructor Details
-
RequestParametersImplementation
public RequestParametersImplementation(jakarta.servlet.http.HttpServletRequest request)
-
-
Method Details
-
get
Description copied from interface:RequestParameters
Returns first value of the parameter- Specified by:
get
in interfaceRequestParameters
- Parameters:
name
- decoded parameter name- Returns:
- decoded value or null if parameter does not exist
-
getAll
Description copied from interface:RequestParameters
Returns all the values of the parameter- Specified by:
getAll
in interfaceRequestParameters
- Parameters:
name
- decoded parameter name- Returns:
- decoded values or empty list if parameter doesn't exist
-
contains
Description copied from interface:RequestParameters
Checks if request has a parameter with name- Specified by:
contains
in interfaceRequestParameters
- Parameters:
name
- parameter name- Returns:
- true if request has a parameter with name, false otherwise
-
getMap
Description copied from interface:RequestParameters
Map view of request parametersModifying the map returned by this method will not affect the request parameters object itself
- Specified by:
getMap
in interfaceRequestParameters
- Returns:
- map view of request parameters
-