Package com.opensymphony.module.sitemesh
Interface PageParserSelector
- All Known Implementing Classes:
BaseFactory,DefaultFactory,Factory
public interface PageParserSelector
-
Method Summary
Modifier and TypeMethodDescriptiongetPageParser(String contentType) Create a PageParser suitable for the given content-type.booleanshouldParsePage(String contentType) Determine whether a Page of given content-type should be parsed or not.
-
Method Details
-
shouldParsePage
Determine whether a Page of given content-type should be parsed or not. -
getPageParser
Create a PageParser suitable for the given content-type.For example, if the supplied parameter is
Never returns null.text/htmla parser shall be returned that can parse HTML accordingly.- Parameters:
contentType- The MIME content-type of the data to be parsed- Returns:
- Appropriate
PageParserfor reading data
-