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
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic RrpcRestOpSession.Buildercreate(RrpcRestOpContext ctx, RestSession session) Static creator.voidrun()Runs this session.Methods inherited from class org.apache.juneau.rest.RestOpSession
create, finish, getBeanStore, getContext, getRequest, getResponse, getRestContext, getRestSession, statusMethods 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:RestOpSessionRuns 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:
runin classRestOpSession- Throws:
Throwable- Any throwable can be thrown.
-