Class RrpcRestOpSession


public class RrpcRestOpSession extends RestOpSession
A session for a single HTTP request against an RRPC Java method.
Notes:
  • This class is not thread safe.
See Also:
  • Constructor Details

  • Method Details

    • create

      Static creator.
      Parameters:
      ctx - The context of the RRPC Java Method.
      Cannot be null.
      session - The REST session creating this session.
      Cannot be null.
      Returns:
      A new builder.
    • finish

      Description copied from class: RestOpSession
      Called at the end of a call to finish any remaining tasks such as flushing buffers and logging the response.
      Overrides:
      finish in class RestOpSession
      Returns:
      This object.
    • run

      public void run() throws Throwable
      Description copied from class: RestOpSession
      Runs this session.

      Does the following:

      1. Runs the guards on the method.
      2. Finds the parameter values to pass to the Java method.
      3. Invokes the Java method.
      4. Sets the output and status on the response.
      5. Calls the converters on the Java method.
      Overrides:
      run in class RestOpSession
      Throws:
      Throwable - Any throwable can be thrown.
    • status

      Description copied from class: RestOpSession
      Sets the status of the response.
      Overrides:
      status in class RestOpSession
      Parameters:
      value - The new status.
      Can be null (ignored).
      Returns:
      This object.