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 SummaryConstructors
- 
Method SummaryModifier 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@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.Builderapply, debug, properties, property, unmodifiable
- 
Constructor Details- 
BuilderConstructor.- Parameters:
- ctx- The context creating this session.
 
 
- 
- 
Method Details- 
resourceSpecifies the servlet implementation bean.- Parameters:
- value- The value for this setting.
- Returns:
- This object.
 
- 
reqSpecifies the HTTP servlet request object on this call.- Parameters:
- value- The value for this setting.
- Returns:
- This object.
 
- 
reqReturns the HTTP servlet request object on this call.- Returns:
- The HTTP servlet request object on this call.
 
- 
resSpecifies the HTTP servlet response object on this call.- Parameters:
- value- The value for this setting.
- Returns:
- This object.
 
- 
resReturns the HTTP servlet response object on this call.- Returns:
- The HTTP servlet response object on this call.
 
- 
loggerSpecifies the logger to use for this session.- Parameters:
- value- The value for this setting.
- Returns:
- This object.
 
- 
buildDescription copied from class:ContextSession.BuilderBuild the object.- Specified by:
- buildin class- ContextSession.Builder
- Returns:
- The built object.
 
- 
getUrlPathReturns the request path info as aUrlPathbean.- Returns:
- The request path info as a UrlPathbean.
 
- 
getPathInfoUndecodedReturns the request path info as aUrlPathbean.- Returns:
- The request path info as a UrlPathbean.
 
- 
pathVarsAdds resolved@Resource (path)- Parameters:
- value- The variables to add to this call.
- Returns:
- This object.
 
 
-