Package org.apache.juneau.rest
Class RestSession.Builder
java.lang.Object
org.apache.juneau.ContextSession.Builder
org.apache.juneau.rest.RestSession.Builder
- Enclosing class:
RestSession
Builder class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the object.Returns the request path info as aUrlPath
bean.Returns the request path info as aUrlPath
bean.logger
(CallLogger value) Specifies the logger to use for this session.Adds resolved variable values to this call.@Resource (path)jakarta.servlet.http.HttpServletRequest
req()
Returns the HTTP servlet request object on this call.req
(jakarta.servlet.http.HttpServletRequest value) Specifies the HTTP servlet request object on this call.jakarta.servlet.http.HttpServletResponse
res()
Returns the HTTP servlet response object on this call.res
(jakarta.servlet.http.HttpServletResponse value) Specifies the HTTP servlet response object on this call.Specifies the servlet implementation bean.Methods inherited from class org.apache.juneau.ContextSession.Builder
apply, debug, properties, property, unmodifiable
-
Constructor Details
-
Builder
Constructor.- Parameters:
ctx
- The context creating this session.
-
-
Method Details
-
resource
Specifies the servlet implementation bean.- Parameters:
value
- The value for this setting.- Returns:
- This object.
-
req
Specifies the HTTP servlet request object on this call.- Parameters:
value
- The value for this setting.- Returns:
- This object.
-
req
Returns the HTTP servlet request object on this call.- Returns:
- The HTTP servlet request object on this call.
-
res
Specifies the HTTP servlet response object on this call.- Parameters:
value
- The value for this setting.- Returns:
- This object.
-
res
Returns the HTTP servlet response object on this call.- Returns:
- The HTTP servlet response object on this call.
-
logger
Specifies the logger to use for this session.- Parameters:
value
- The value for this setting.- Returns:
- This object.
-
build
Description copied from class:ContextSession.Builder
Build the object.- Specified by:
build
in classContextSession.Builder
- Returns:
- The built object.
-
getUrlPath
Returns the request path info as aUrlPath
bean.- Returns:
- The request path info as a
UrlPath
bean.
-
getPathInfoUndecoded
Returns the request path info as aUrlPath
bean.- Returns:
- The request path info as a
UrlPath
bean.
-
pathVars
Adds resolved variable values to this call.@Resource (path)- Parameters:
value
- The variables to add to this call.- Returns:
- This object.
-