Enum Class WebParameterSource

java.lang.Object
java.lang.Enum<WebParameterSource>
io.fluxzero.sdk.web.WebParameterSource
All Implemented Interfaces:
Serializable, Comparable<WebParameterSource>, Constable

public enum WebParameterSource extends Enum<WebParameterSource>
Enumerates the sources of parameter values in an HTTP or WebSocket request.

This enum is used by WebParam and its derived annotations (e.g. PathParam, QueryParam) to specify where the value should be extracted from.

  • PATH – Extracted from URI template variables (e.g., /user/{id})
  • QUERY – Extracted from the query string (e.g., ?id=123)
  • HEADER – Extracted from HTTP headers
  • COOKIE – Extracted from cookies
  • FORM – Extracted from URL-encoded form fields
  • BODY – Extracted from a JSON request body
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static WebParameterSource[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WebParameterSource valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null