com.opensymphony.sitemesh.compatability
Class PageParser2ContentProcessor

java.lang.Object
  extended by com.opensymphony.sitemesh.compatability.PageParser2ContentProcessor
All Implemented Interfaces:
ContentProcessor

public class PageParser2ContentProcessor
extends java.lang.Object
implements ContentProcessor

Adapts a SiteMesh 2 PageParser to a SiteMesh 3 ContentProcessor.

Since:
SiteMesh 3
Author:
Joe Walnes

Field Summary
private  Factory factory
           
 
Constructor Summary
PageParser2ContentProcessor(Factory factory)
           
 
Method Summary
 Content build(char[] data, SiteMeshContext context)
           
private  java.lang.String extractRequestPath(javax.servlet.http.HttpServletRequest request)
           
 boolean handles(SiteMeshContext context)
           
 boolean handles(java.lang.String contentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface ContentProcessor

extractRequestPath

private java.lang.String extractRequestPath(javax.servlet.http.HttpServletRequest request)

handles

public boolean handles(java.lang.String contentType)
Specified by:
handles in interface ContentProcessor

build

public Content build(char[] data,
                     SiteMeshContext context)
              throws java.io.IOException
Specified by:
build in interface ContentProcessor
Throws:
java.io.IOException

www.opensymphony.com/sitemesh/