Class CalendarContentSaxer
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.ContentSaxer
org.ametys.plugins.calendar.search.CalendarContentSaxer
- All Implemented Interfaces:
ReturnableSaxer
-
Field Summary
Fields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSaxer
_contentReturnable, _contentTypes, _cTypesHelper, _view -
Constructor Summary
ConstructorsConstructorDescriptionCalendarContentSaxer(AbstractContentBasedReturnable contentReturnable, String view, ContentTypesHelper cTypesHelper, Collection<String> contentTypes) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalegetDefaultLocale(Request request, SearchComponentArguments args) Get the default localevoidsax(ContentHandler contentHandler, AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args) SAX the given search hitprotected voidsaxHtmlView(ContentHandler contentHandler, Content content, SearchComponentArguments args, org.slf4j.Logger logger) SAX content html viewprotected voidsaxTags(Content content, ContentHandler contentHandler) Generates SAX events for tags.Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSaxer
canSaxMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.web.frontoffice.search.metamodel.ReturnableSaxer
getIdentifier
-
Constructor Details
-
CalendarContentSaxer
public CalendarContentSaxer(AbstractContentBasedReturnable contentReturnable, String view, ContentTypesHelper cTypesHelper, Collection<String> contentTypes) Constructor- Parameters:
contentReturnable- The associated returnable on contentsview- The view for SAXing contentscTypesHelper- theContentTypesHelpercontentTypes- the allowed content types
-
-
Method Details
-
sax
public void sax(ContentHandler contentHandler, AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args) throws SAXException Description copied from interface:ReturnableSaxerSAX the given search hit- Specified by:
saxin interfaceReturnableSaxer- Overrides:
saxin classContentSaxer- Parameters:
contentHandler- The content handlerhit- The search hitlogger- A loggerargs- The other arguments- Throws:
SAXException- if a SAX error occured
-
getDefaultLocale
Get the default locale- Parameters:
request- the requestargs- the search arguments- Returns:
- the default locale
-
saxHtmlView
protected void saxHtmlView(ContentHandler contentHandler, Content content, SearchComponentArguments args, org.slf4j.Logger logger) throws SAXException SAX content html view- Parameters:
contentHandler- the content handlercontent- the contentargs- the search argumentslogger- the logger- Throws:
SAXException- if an error occurred while saxing
-
saxTags
Generates SAX events for tags.- Parameters:
content- theWebContent.contentHandler- the ContentHandler receving SAX events.- Throws:
SAXException- if an error occurs during the SAX events generation.
-