Interface HttpPlainExecutionContext

All Superinterfaces:
BaseExecutionContext, HttpBaseExecutionContext
All Known Subinterfaces:
ExecutionContext, HttpExecutionContext, HttpExecutionContext

public interface HttpPlainExecutionContext extends HttpBaseExecutionContext
Http execution context allowing access to HttpPlainRequest and HttpPlainResponse that manipulates raw http bodies (content or chunks).
Author:
Jeoffrey HAEYAERT (jeoffrey.haeyaert at graviteesource.com), GraviteeSource Team
  • Field Details

  • Method Details

    • request

      HttpPlainRequest request()
      Get the current request stuck to this execution context.
      Specified by:
      request in interface HttpBaseExecutionContext
      Returns:
      the request attached to this execution context.
    • response

      HttpPlainResponse response()
      Get the current response stuck to this execution context.
      Specified by:
      response in interface HttpBaseExecutionContext
      Returns:
      the response attached to this execution context.
    • interrupt

      io.reactivex.rxjava3.core.Completable interrupt()
      Interrupts the current execution while indicating that the response can be sent "as is" to the downstream. This has direct impact on how the remaining execution flow will behave (ex: remaining policies in a policy chain won't be executed).
    • interruptWith

      io.reactivex.rxjava3.core.Completable interruptWith(ExecutionFailure failure)
      Same as interrupt() but with an ExecutionFailure object that indicates that the execution has failed. The ExecutionFailure can be processed in order to build a proper response (ex: based on templating, with appropriate accept-encoding, ...).
    • interruptBody

      io.reactivex.rxjava3.core.Maybe<Buffer> interruptBody()
      Interrupts the current execution while indicating that the response can be sent "as is" to the downstream. This has direct impact on how the remaining execution flow will behave (ex: remaining policies in a policy chain won't be executed).
    • interruptBodyWith

      io.reactivex.rxjava3.core.Maybe<Buffer> interruptBodyWith(ExecutionFailure failure)
      Same as interruptBody() but with an ExecutionFailure object that indicates that the execution has failed. The ExecutionFailure can be processed in order to build a proper response (ex: based on templating, with appropriate accept-encoding, ...).