Interface FlowFilter.Flow

Enclosing class:
FlowFilter

public static interface FlowFilter.Flow
An exchange as filters see it: the request, the response once there is one, and the bodies when they have been buffered.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the request.
    default byte[]
    Returns the decoded request body, or null if it is not available.
    default HttpResponse
    Returns the response, or null before there is one.
    default byte[]
    Returns the decoded response body, or null if it is not available.
    url()
    Returns the absolute URL of the request.
  • Method Details

    • request

      HttpRequest request()
      Returns the request.
      Returns:
      the request
    • url

      String url()
      Returns the absolute URL of the request.
      Returns:
      the absolute URL of the request
    • response

      default HttpResponse response()
      Returns the response, or null before there is one.
      Returns:
      the response, or null before there is one
    • requestBody

      default byte[] requestBody()
      Returns the decoded request body, or null if it is not available.
      Returns:
      the decoded request body, or null if it is not available
    • responseBody

      default byte[] responseBody()
      Returns the decoded response body, or null if it is not available.
      Returns:
      the decoded response body, or null if it is not available