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.finish()Called at the end of a call to finish any remaining tasks such as flushing buffers and logging the response.voidrun()Runs this session.status(StatusLine value) Sets the status of the response.Methods inherited from class org.apache.juneau.rest.RestOpSession
create, getBeanStore, getContext, getRequest, getResponse, getRestContext, getRestSession, propertiesMethods inherited from class org.apache.juneau.ContextSession
addWarning, checkForWarnings, getSessionProperties, getWarnings, isDebug, 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.
Cannot benull .session- The REST session creating this session.
Cannot benull .- Returns:
- A new builder.
-
finish
Description copied from class:RestOpSessionCalled at the end of a call to finish any remaining tasks such as flushing buffers and logging the response.- Overrides:
finishin classRestOpSession- Returns:
- This object.
-
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.
-
status
Description copied from class:RestOpSessionSets the status of the response.- Overrides:
statusin classRestOpSession- Parameters:
value- The new status.
Can benull (ignored).- Returns:
- This object.
-