Uses of Class
org.apache.juneau.rest.server.RestSession
Packages that use RestSession
Package
Description
REST Server API
REST Method Argument Beans
REST HTTP Parts
JUL-level-driven REST debug logging API.
REST Remote Procedure Call API
-
Uses of RestSession in org.apache.juneau.rest.server
Fields in org.apache.juneau.rest.server declared as RestSessionFields in org.apache.juneau.rest.server with type parameters of type RestSessionModifier and TypeFieldDescriptionprotected final ThreadLocal<RestSession>RestContext.localSessionMethods in org.apache.juneau.rest.server that return RestSessionModifier and TypeMethodDescriptionRestSession.Builder.build()Identifies that an exception occurred during this call.RestSession.finish()Called at the end of a call to finish any remaining tasks such as flushing buffers and logging the response.static RestSessionRestSession.fromRequest(jakarta.servlet.http.HttpServletRequest req) Returns theRestSessionpublished on the given servlet request via theREQUEST_SESSION_ATTRsession-handle seam, ornull if none is present.RestContext.getLocalSession()Returns the HTTP call for the current request.RestOpSession.getRestSession()Returns the session of the parent class of this Java method.RestSession.installCapture()Installs bounded body-caching wrappers on this call's request/response for debug capture.RestSession.status(int value) Sets the HTTP status on this call.RestSession.status(HttpStatusLine value) Sets the HTTP status on this call.RestSession.urlPathMatch(UrlPathMatch value) Sets the URL path pattern match on this call.Methods in org.apache.juneau.rest.server with parameters of type RestSessionModifier and TypeMethodDescriptionRestOperations.allowedMethods(RestSession session) Returns the value of theAllow header for a405 Method Not Allowed response to the specified call.static RestOpSession.BuilderRestOpSession.create(RestOpContext ctx, RestSession session) Static creator.RestOpContext.createRequest(RestSession session) Creates aRestRequestobject based on the specified incomingHttpServletRequestobject.RestOpContext.createResponse(RestSession session, RestRequest req) Creates aRestResponseobject based on the specified incomingHttpServletResponseobject and the request returned byRestOpContext.createRequest(RestSession).RestOpContext.createSession(RestSession session) Creates a new REST operation session.protected voidRestContext.endCall(RestSession session) Called at the end of a request to invoke allRestEndCallmethods on this context.RestOperations.findOperation(RestSession session) Finds the method that should handle the specified call.protected voidRestContext.handleError(RestSession session, Throwable e) Method for handling response errors.protected voidRestContext.handleNotFound(RestSession session) protected intRestOpContext.match(RestSession session) Identifies if this method can process the specified call.protected voidRestContext.startCall(RestSession session) Called at the start of a request to invoke allRestStartCallmethods on this context.Constructors in org.apache.juneau.rest.server with parameters of type RestSession -
Uses of RestSession in org.apache.juneau.rest.server.arg
Constructor parameters in org.apache.juneau.rest.server.arg with type arguments of type RestSessionModifierConstructorDescriptionprotectedRestSessionArgs(ThrowingFunction<RestSession, T> function) Constructor. -
Uses of RestSession in org.apache.juneau.rest.server.httppart
Constructors in org.apache.juneau.rest.server.httppart with parameters of type RestSessionModifierConstructorDescriptionRequestPathParamList(RestSession session, RestRequest req, boolean caseSensitive) Constructor. -
Uses of RestSession in org.apache.juneau.rest.server.logging
Methods in org.apache.juneau.rest.server.logging with parameters of type RestSessionModifier and TypeMethodDescriptionstatic voidRestDebugPipeline.captureAsyncSnapshot(RestSession session) Resolves the logger/formatter/detail-tier snapshot for the given session and stashes it on the session for later completion-path emission.static voidRestDebugPipeline.emit(RestSession session) Emits one debug record for the completed call on the synchronous request thread, if the resolved logger's effective level warrants it.static voidRestDebugPipeline.emitOnCompletion(RestSession session) Emits one debug record for a completed asynchronous call on the response-completion thread. -
Uses of RestSession in org.apache.juneau.rest.server.rrpc
Methods in org.apache.juneau.rest.server.rrpc with parameters of type RestSessionModifier and TypeMethodDescriptionstatic RrpcRestOpSession.BuilderRrpcRestOpSession.create(RrpcRestOpContext ctx, RestSession session) Static creator.RrpcRestOpContext.createSession(RestSession session) Constructors in org.apache.juneau.rest.server.rrpc with parameters of type RestSession