Interface RequestAdapter
- All Known Implementing Classes:
AbstractRequestAdapter
public interface RequestAdapter
-
Method Summary
Modifier and TypeMethodDescriptionGets the HTTP method (e.g., GET, POST) of the request.getParameter(String name) Retrieves a query parameter by name.Retrieves a BufferedReader to read the request body.
-
Method Details
-
getMethod
String getMethod()Gets the HTTP method (e.g., GET, POST) of the request.- Returns:
- The HTTP method as a string.
-
getParameter
Retrieves a query parameter by name.- Parameters:
name- The name of the query parameter.- Returns:
- The value of the query parameter, or null if not present.
-
getReader
Retrieves a BufferedReader to read the request body.- Returns:
- A BufferedReader for the request body.
- Throws:
IOException- If an error occurs during reading.
-