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.
      session - The REST session creating this session.
      Returns:
      A new builder.
    • 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.