Uses of Class
org.apache.juneau.rest.RestRequest
Packages that use RestRequest
Package
Description
REST Server API
REST Method Argument Beans
REST Interface Helper Classes
REST Response Converters
REST Guards
HTML Widget API
-
Uses of RestRequest in org.apache.juneau.examples.rest
Methods in org.apache.juneau.examples.rest with parameters of type RestRequestModifier and TypeMethodDescriptionjakarta.servlet.http.HttpServletRequest
RequestEchoResource.doGet
(RestRequest req) [HTTP GET /echo/*] GET request handler.boolean
AdminGuard.isRequestAllowed
(RestRequest req) -
Uses of RestRequest in org.apache.juneau.microservice.jetty.resources
Methods in org.apache.juneau.microservice.jetty.resources with parameters of type RestRequestModifier and TypeMethodDescriptionDebugResource.createJettyDump
(RestRequest req, RestResponse res) [POST /jetty/dump] - Generates and saves the jetty thread dump file to jetty-thread-dump.log.DebugResource.getJettyDump
(RestRequest req, RestResponse res) [GET /jetty/dump] - Generates and retrieves the jetty thread dump. -
Uses of RestRequest in org.apache.juneau.microservice.resources
Methods in org.apache.juneau.microservice.resources with parameters of type RestRequestModifier and TypeMethodDescriptionDirectoryResource.getFile
(RestRequest req, String path) LogsResource.getFile
(RestRequest req, String path) LogsResource.viewParsedEntries
(RestRequest req, String path, String start, String end, String thread, String[] loggers, String[] severity) -
Uses of RestRequest in org.apache.juneau.rest
Methods in org.apache.juneau.rest that return RestRequestModifier and TypeMethodDescriptionRestOpContext.createRequest
(RestSession session) Creates aRestRequest
object based on the specified incomingHttpServletRequest
object.RestOpSession.getRequest()
Returns the REST request object for this session.RestRequest.setDebug()
Shortcut for callingsetDebug( .true )Sets the"Debug" attribute to the specified boolean.RestRequest.setException
(Throwable t) Sets the"Exception" attribute to the specified throwable.RestRequest.setNoTrace()
Shortcut for callingsetNoTrace( .true )RestRequest.setNoTrace
(Boolean b) Sets the"NoTrace" attribute to the specified boolean.Methods in org.apache.juneau.rest that return types with arguments of type RestRequestModifier and TypeMethodDescriptionRestRequest.assertCharset()
Provides the ability to perform fluent-style assertions on the response character encoding.RestRequest.assertContent()
Returns a fluent assertion for the request content.RestRequest.assertFormParam
(String name) Returns a fluent assertion for the specified form parameter.RestRequest.assertHeader
(String name) Returns a fluent assertion for the specified header.RestRequest.assertQueryParam
(String name) Returns a fluent assertion for the specified query parameter.RestRequest.assertRequestLine()
Returns an assertion on the request line returned bygetRequestLine()
.Methods in org.apache.juneau.rest with parameters of type RestRequestModifier and TypeMethodDescriptionRestOpContext.createResponse
(RestSession session, RestRequest req) Creates aRestResponse
object based on the specified incomingHttpServletResponse
object and the request returned byRestOpContext.createRequest(RestSession)
. -
Uses of RestRequest in org.apache.juneau.rest.arg
Constructor parameters in org.apache.juneau.rest.arg with type arguments of type RestRequestModifierConstructorDescriptionprotected
RestRequestArgs
(ThrowingFunction<RestRequest, T> function) Constructor. -
Uses of RestRequest in org.apache.juneau.rest.beans
Methods in org.apache.juneau.rest.beans with parameters of type RestRequestModifier and TypeMethodDescriptionstatic ChildResourceDescriptions
ChildResourceDescriptions.of
(RestRequest req) Static creator.Constructors in org.apache.juneau.rest.beans with parameters of type RestRequestModifierConstructorDescriptionChildResourceDescriptions
(RestContext context, RestRequest req) Constructor.ChildResourceDescriptions
(RestContext context, RestRequest req, boolean sort) Constructor.Constructor. -
Uses of RestRequest in org.apache.juneau.rest.converter
Methods in org.apache.juneau.rest.converter with parameters of type RestRequestModifier and TypeMethodDescriptionIntrospectable.convert
(RestRequest req, Object o) Queryable.convert
(RestRequest req, Object o) RestConverter.convert
(RestRequest req, Object res) Performs post-call conversion on the specified response object.Traversable.convert
(RestRequest req, Object o) -
Uses of RestRequest in org.apache.juneau.rest.guard
Methods in org.apache.juneau.rest.guard with parameters of type RestRequestModifier and TypeMethodDescriptionboolean
RestGuard.guard
(RestRequest req, RestResponse res) Checks the current HTTP request and throws aBasicHttpException
if the guard does not permit the request.abstract boolean
RestGuard.isRequestAllowed
(RestRequest req) Returnstrue if the specified request can pass through this guard.boolean
RoleBasedRestGuard.isRequestAllowed
(RestRequest req) -
Uses of RestRequest in org.apache.juneau.rest.httppart
Methods in org.apache.juneau.rest.httppart that return RestRequestModifier and TypeMethodDescriptionprotected RestRequest
RequestHttpPart.getRequest()
Returns the request that created this part.Constructors in org.apache.juneau.rest.httppart with parameters of type RestRequestModifierConstructorDescriptionRequestAttribute
(RestRequest request, String name, Object value) Constructor.Constructor.Constructor.RequestFormParam
(RestRequest request, jakarta.servlet.http.Part part) Constructor.RequestFormParam
(RestRequest request, String name, String value) Constructor.RequestFormParams
(RestRequest req, boolean caseSensitive) Constructor.RequestHeader
(RestRequest request, String name, String value) Constructor.RequestHeaders
(RestRequest req, RequestQueryParams query, boolean caseSensitive) Constructor.RequestHttpPart
(HttpPartType partType, RestRequest request, String name, String value) Constructor.RequestPathParam
(RestRequest request, String name, String value) Constructor.RequestPathParams
(RestSession session, RestRequest req, boolean caseSensitive) Constructor.RequestQueryParam
(RestRequest request, String name, String value) Constructor.RequestQueryParams
(RestRequest req, Map<String, String[]> query, boolean caseSensitive) Constructor. -
Uses of RestRequest in org.apache.juneau.rest.servlet
Methods in org.apache.juneau.rest.servlet that return RestRequestModifier and TypeMethodDescriptionRestObject.getRequest()
Returns the current thread-local HTTP request.RestServlet.getRequest()
Returns the current thread-local HTTP request.Methods in org.apache.juneau.rest.servlet with parameters of type RestRequestModifier and TypeMethodDescriptionBasicGroupOperations.getChildren
(RestRequest req) [GET /] - Get child resources.BasicRestObjectGroup.getChildren
(RestRequest req) BasicRestServletGroup.getChildren
(RestRequest req) BasicRestObject.getStats
(RestRequest req) BasicRestOperations.getStats
(RestRequest req) [GET /stats] - Timing statistics.BasicRestServlet.getStats
(RestRequest req) BasicRestObject.getSwagger
(RestRequest req) BasicRestOperations.getSwagger
(RestRequest req) [GET /api] - Show resource options.BasicRestServlet.getSwagger
(RestRequest req) -
Uses of RestRequest in org.apache.juneau.rest.springboot
Methods in org.apache.juneau.rest.springboot with parameters of type RestRequestModifier and TypeMethodDescriptionBasicSpringRestServletGroup.getChildren
(RestRequest req) BasicSpringRestServlet.getStats
(RestRequest req) BasicSpringRestServlet.getSwagger
(RestRequest req) -
Uses of RestRequest in org.apache.juneau.rest.widget
Methods in org.apache.juneau.rest.widget with parameters of type RestRequestModifier and TypeMethodDescriptionMenuItemWidget.getAfterShowScript
(RestRequest req, RestResponse res) Optional Javascript to execute immediately after a menu item is shown.MenuItemWidget.getBeforeShowScript
(RestRequest req, RestResponse res) Optional Javascript to execute immediately before a menu item is shown.ContentTypeMenuItem.getContent
(RestRequest req, RestResponse res) abstract Object
MenuItemWidget.getContent
(RestRequest req, RestResponse res) The content of the popup.QueryMenuItem.getContent
(RestRequest req, RestResponse res) ThemeMenuItem.getContent
(RestRequest req, RestResponse res) protected FileFinder
Widget.getFileFinder
(RestRequest req) Returns the file finder to use for finding files on the file system.MenuItemWidget.getHtml
(RestRequest req, RestResponse res) PoweredByApache.getHtml
(RestRequest req, RestResponse res) Returns an Apache image tag hyperlinked to"http://apache.org" PoweredByJuneau.getHtml
(RestRequest req, RestResponse res) Returns an Apache Juneau image tag hyperlinked to"http://juneau.apache.org" Widget.getHtml
(RestRequest req, RestResponse res) Resolves the HTML content for this widget.ContentTypeMenuItem.getLabel
(RestRequest req, RestResponse res) abstract String
MenuItemWidget.getLabel
(RestRequest req, RestResponse res) The label for the menu item as it's rendered in the menu bar.QueryMenuItem.getLabel
(RestRequest req, RestResponse res) ThemeMenuItem.getLabel
(RestRequest req, RestResponse res) MenuItemWidget.getScript
(RestRequest req, RestResponse res) Returns the Javascript needed for the show and hide actions of the menu item.Widget.getScript
(RestRequest req, RestResponse res) Resolves any Javascript that should be added to the<head>/<script> element.MenuItemWidget.getStyle
(RestRequest req, RestResponse res) Defines a"menu-item" class that needs to be used on the outer element of the HTML returned by theMenuItemWidget.getHtml(RestRequest,RestResponse)
method.QueryMenuItem.getStyle
(RestRequest req, RestResponse res) Returns CSS for the tooltips.Widget.getStyle
(RestRequest req, RestResponse res) Resolves any CSS styles that should be added to the<head>/<style> element.protected String
Widget.loadHtml
(RestRequest req, String name) Loads the specified HTML file and strips HTML comments from the file.protected String
Widget.loadHtmlWithVars
(RestRequest req, RestResponse res, String name) Same asWidget.loadHtml(RestRequest,String)
but replaces request-time SVL variables.protected String
Widget.loadScript
(RestRequest req, String name) Loads the specified javascript file and strips any Javascript comments from the file.protected String
Widget.loadScriptWithVars
(RestRequest req, RestResponse res, String name) Same asWidget.loadScript(RestRequest,String)
but replaces request-time SVL variables.protected String
Widget.loadStyle
(RestRequest req, String name) Loads the specified CSS file and strips CSS comments from the file.protected String
Widget.loadStyleWithVars
(RestRequest req, RestResponse res, String name) Same asWidget.loadStyle(RestRequest,String)
but replaces request-time SVL variables.