Interface HttpRequestMethod


public interface HttpRequestMethod
Defines constants for standard and extended HTTP request methods used by Flux Capacitor's web handling system.

This interface provides:

  • String constants for standard HTTP verbs (e.g. GET, POST)
  • Custom pseudo-methods for WebSocket lifecycle events (e.g. WS_HANDSHAKE, WS_MESSAGE)
  • A wildcard constant (*) for method-agnostic routing
  • A helper method to detect whether a method is a WebSocket variant

Usage

These constants are used throughout the web routing and handler matching infrastructure:

The extended WebSocket methods are used internally to distinguish between phases of a WebSocket session, such as handshake negotiation, message delivery, or connection closure.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Matches any HTTP method (wildcard).
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
    Represents an explicit closure of a WebSocket session.
    static final String
    Synthetic method representing a WebSocket handshake (initial HTTP upgrade).
    static final String
    Represents a message sent over an established WebSocket connection.
    static final String
    Represents the WebSocket session being formally opened after handshake.
    static final String
    Represents a pong response received for a ping message.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static boolean
    isWebsocket(String requestMethod)
    Determines whether the given method string represents a WebSocket-specific method.