@Rest(path="/atom", title="Sample ATOM feed resource", description="Sample resource that shows how to render ATOM feeds", encoders=GzipEncoder.class, swagger=) @HtmlDocConfig(widgets={ContentTypeMenuItem.class,ThemeMenuItem.class}, navlinks={"up: request:/..","options: servlet:/?method=OPTIONS","stats: servlet:/stats","$W{ContentTypeMenuItem}","$W{ThemeMenuItem}","source: $C{Source/gitHub}/org/apache/juneau/examples/rest/dto/$R{servletClassSimple}.java"}) @SerializerConfig(quoteChar="\'") @RdfConfig(rdfxml_tab="5", addRootProperty="true") @BeanConfig(examples="Feed: $F{AtomFeedResource_example.json}") public class AtomFeedResource extends BasicRestServletJena
Constructor and Description |
---|
AtomFeedResource() |
Modifier and Type | Method and Description |
---|---|
Feed |
get()
Get the sample ATOM feed
|
void |
init() |
Feed |
put(Feed feed)
Overwrite the sample ATOM feed
|
error, getOptions, getStats
destroy, getContext, getPath, getProperties, getRequest, getResponse, getServletConfig, init, log, log, log, log, logObjects, service, setContext, setRestResourceResolver
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
getInitParameter, getInitParameterNames, getServletContext, getServletInfo, getServletName
public AtomFeedResource()
public void init()
init
in class GenericServlet
@RestMethod(summary="Get the sample ATOM feed") public Feed get()
@RestMethod(summary="Overwrite the sample ATOM feed", description="Replaces the feed with the specified content, and then mirrors it as the response.") public Feed put(@Body Feed feed)
feed
- The new ATOM feed.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.