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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the object.Returns the request path info as aUrlPathbean.Returns the request path info as aUrlPathbean.logger(CallLogger value) Specifies the logger to use for this session.Adds resolved variable values to this call.@Resource (path)jakarta.servlet.http.HttpServletRequestreq()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.HttpServletResponseres()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.
Cannot benull .
-
-
Method Details
-
build
Description copied from class:ContextSession.BuilderBuild the object.- Specified by:
buildin classContextSession.Builder- Returns:
- The built object.
-
getPathInfoUndecoded
Returns the request path info as aUrlPathbean.- Returns:
- The request path info as a
UrlPathbean.
-
getUrlPath
Returns the request path info as aUrlPathbean.- Returns:
- The request path info as a
UrlPathbean.
-
logger
Specifies the logger to use for this session.- Parameters:
value- The value for this setting.
Can benull (will use the default logger from the context if available).- Returns:
- This object.
-
pathVars
Adds resolved variable values to this call.@Resource (path)- Parameters:
value- The variables to add to this call.
Can benull (ignored).- Returns:
- This object.
-
req
Returns the HTTP servlet request object on this call.- Returns:
- The HTTP servlet request object on this call.
-
req
Specifies the HTTP servlet request object on this call.- Parameters:
value- The value for this setting.
Cannot benull .- Returns:
- This object.
-
res
Returns the HTTP servlet response object on this call.- Returns:
- The HTTP servlet response object on this call.
-
res
Specifies the HTTP servlet response object on this call.- Parameters:
value- The value for this setting.
Cannot benull .- Returns:
- This object.
-
resource
Specifies the servlet implementation bean.- Parameters:
value- The value for this setting.
Can benull (no outer bean will be used for instantiating inner classes).- Returns:
- This object.
-