Uses of Class
org.apache.juneau.rest.RestSession
Packages that use RestSession
Package
Description
REST Server API
REST Method Argument Beans
-
Uses of RestSession in org.apache.juneau.rest
Methods in org.apache.juneau.rest that return RestSessionModifier and TypeMethodDescriptionRestSession.Builder.build()
RestSession.debug
(boolean value) Enables or disabled debug mode on this call.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.RestContext.getLocalSession()
Returns the HTTP call for the current request.RestOpSession.getRestSession()
Returns the session of the parent class of this Java method.RestSession.logger
(CallLogger value) Sets the logger to use when logging this call.RestSession.status
(int value) Sets the HTTP status on this call.RestSession.status
(StatusLine 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 with parameters of type RestSessionModifier and TypeMethodDescriptionstatic RestOpSession.Builder
RestOpSession.create
(RestOpContext ctx, RestSession session) Static creator.RestOpContext.createRequest
(RestSession session) Creates aRestRequest
object based on the specified incomingHttpServletRequest
object.RestOpContext.createResponse
(RestSession session, RestRequest req) Creates aRestResponse
object based on the specified incomingHttpServletResponse
object and the request returned byRestOpContext.createRequest(RestSession)
.RestOpContext.createSession
(RestSession session) Creates a new REST operation session.protected void
RestContext.endCall
(RestSession session) Called at the end of a request to invoke allRestEndCall
methods.RestOperations.findOperation
(RestSession session) Finds the method that should handle the specified call.protected void
RestContext.handleError
(RestSession session, Throwable e) Method for handling response errors.protected void
RestContext.handleNotFound
(RestSession session) Handle the case where a matching method was not found.protected int
RestOpContext.match
(RestSession session) Identifies if this method can process the specified call.protected void
RestContext.startCall
(RestSession session) Called at the start of a request to invoke allRestStartCall
methods.Constructors in org.apache.juneau.rest with parameters of type RestSession -
Uses of RestSession in org.apache.juneau.rest.arg
Constructor parameters in org.apache.juneau.rest.arg with type arguments of type RestSessionModifierConstructorDescriptionprotected
RestSessionArgs
(ThrowingFunction<RestSession, T> function) Constructor. -
Uses of RestSession in org.apache.juneau.rest.httppart
Constructors in org.apache.juneau.rest.httppart with parameters of type RestSessionModifierConstructorDescriptionRequestPathParams
(RestSession session, RestRequest req, boolean caseSensitive) Constructor. -
Uses of RestSession in org.apache.juneau.rest.rrpc
Methods in org.apache.juneau.rest.rrpc with parameters of type RestSessionModifier and TypeMethodDescriptionstatic RrpcRestOpSession.Builder
RrpcRestOpSession.create
(RrpcRestOpContext ctx, RestSession session) Static creator.RrpcRestOpContext.createSession
(RestSession session) Constructors in org.apache.juneau.rest.rrpc with parameters of type RestSession