Package org.apache.juneau.rest.servlet
Interface BasicRestOperations
- All Known Implementing Classes:
- AtomFeedResource,- BasicRestObject,- BasicRestObjectGroup,- BasicRestServlet,- BasicRestServletGroup,- BasicSpringRestServlet,- BasicSpringRestServletGroup,- ConfigResource,- DebugResource,- DirectoryResource,- DtoExamples,- HelloWorldResource,- HelloWorldResource,- HelloWorldResource,- HtmlBeansResource,- JsonSchemaResource,- LogsResource,- PhotosResource,- RequestEchoResource,- RootResources,- RootResources,- RootResources,- RrpcServlet,- SampleRootResource,- ShutdownResource,- UtilityBeansResource
public interface BasicRestOperations
Basic REST operation methods.
 
Defines 5 special use REST operation endpoints:
   Swagger getSwagger(RestRequest HttpResource getHtdoc(HttpResource getFavIcon();
   RestContextStats getStats(RestRequest error();
 
Implementations provided by the following classes:
See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoiderror()[* /error] - Error occurred.[GET favicon.ico] - Retrieve favorites icon image.[GET /htdocs/*] - Retrieve static file.getStats(RestRequest req) [GET /stats] - Timing statistics.getSwagger(RestRequest req) [GET /api] - Show resource options.
- 
Method Details- 
getSwagger[GET /api] - Show resource options.- Parameters:
- req- The HTTP request.
- Returns:
- A bean containing the contents for the OPTIONS page.
 
- 
getHtdoc[GET /htdocs/*] - Retrieve static file.- Parameters:
- path- The path to retrieve.
- locale- The locale of the HTTP request.
- Returns:
- An HTTP resource representing the static file.
 
- 
getFavIcon[GET favicon.ico] - Retrieve favorites icon image.- Returns:
- A bean containing the contents for the OPTIONS page.
 
- 
errorvoid error()[* /error] - Error occurred.
- 
getStats[GET /stats] - Timing statistics.Timing statistics for method invocations on this resource. - Parameters:
- req- The HTTP request.
- Returns:
- A collection of timing statistics for each annotated method on this resource.
 
 
-