Interface RequestAdapter

All Known Implementing Classes:
AbstractRequestAdapter

public interface RequestAdapter
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the HTTP method (e.g., GET, POST) of the request.
    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

      String getParameter(String name)
      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

      BufferedReader getReader() throws IOException
      Retrieves a BufferedReader to read the request body.
      Returns:
      A BufferedReader for the request body.
      Throws:
      IOException - If an error occurs during reading.