Class PageParser2ContentProcessor
- java.lang.Object
-
- com.opensymphony.sitemesh.compatability.PageParser2ContentProcessor
-
- All Implemented Interfaces:
ContentProcessor
public class PageParser2ContentProcessor extends Object implements ContentProcessor
Adapts a SiteMesh 2PageParser
to a SiteMesh 3ContentProcessor
.- Since:
- SiteMesh 3
- Author:
- Joe Walnes
-
-
Constructor Summary
Constructors Constructor Description PageParser2ContentProcessor(Factory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Content
build(char[] data, SiteMeshContext context)
private String
extractRequestPath(javax.servlet.http.HttpServletRequest request)
boolean
handles(SiteMeshContext context)
boolean
handles(String contentType)
-
-
-
Field Detail
-
factory
private final Factory factory
-
-
Constructor Detail
-
PageParser2ContentProcessor
public PageParser2ContentProcessor(Factory factory)
-
-
Method Detail
-
handles
public boolean handles(SiteMeshContext context)
- Specified by:
handles
in interfaceContentProcessor
-
extractRequestPath
private String extractRequestPath(javax.servlet.http.HttpServletRequest request)
-
handles
public boolean handles(String contentType)
- Specified by:
handles
in interfaceContentProcessor
-
build
public Content build(char[] data, SiteMeshContext context) throws IOException
- Specified by:
build
in interfaceContentProcessor
- Throws:
IOException
-
-