Package org.apache.juneau.rest.rrpc
Class RrpcRestOpSession
java.lang.Object
org.apache.juneau.ContextSession
org.apache.juneau.rest.RestOpSession
org.apache.juneau.rest.rrpc.RrpcRestOpSession
A session for a single HTTP request against an RRPC Java method.
Notes:
- This class is not thread safe.
See Also:
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic RrpcRestOpSession.Builder
create
(RrpcRestOpContext ctx, RestSession session) Static creator.void
run()
Runs this session.Methods inherited from class org.apache.juneau.rest.RestOpSession
create, finish, getBeanStore, getContext, getRequest, getResponse, getRestContext, getRestSession, status
Methods inherited from class org.apache.juneau.ContextSession
addWarning, checkForWarnings, getSessionProperties, getWarnings, isDebug, properties, toString
-
Constructor Details
-
RrpcRestOpSession
Constructor.- Parameters:
builder
- The builder for this object.
-
-
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
Description copied from class:RestOpSession
Runs this session.Does the following:
- Runs the guards on the method.
- Finds the parameter values to pass to the Java method.
- Invokes the Java method.
- Sets the output and status on the response.
- Calls the converters on the Java method.
- Overrides:
run
in classRestOpSession
- Throws:
Throwable
- Any throwable can be thrown.
-