public class GetLastPublishedContents extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
private RenderingContextHandler |
_renderingContextHandler |
private AmetysObjectResolver |
_resolver |
private SiteManager |
_siteManager |
private SourceResolver |
_sourceResolver |
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
GetLastPublishedContents() |
Modifier and Type | Method and Description |
---|---|
void |
generate() |
protected void |
saxContent(Request request,
Content content,
String metadataSetName)
SAX a content in its specific view
|
void |
service(ServiceManager smanager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
private SourceResolver _sourceResolver
private AmetysObjectResolver _resolver
private SiteManager _siteManager
private RenderingContextHandler _renderingContextHandler
public GetLastPublishedContents()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
protected void saxContent(Request request, Content content, String metadataSetName) throws SAXException, IOException
request
- the requestcontent
- The content to SAXmetadataSetName
- The metadata set to useSAXException
- If an error occurs while SAXingIOException
- If an error occurs while retrieving content.