mx4j.tools.adaptor.http

Class XSLTProcessor

Implemented Interfaces:
ProcessorMBean, URIResolver, XSLTProcessorMBean

public class XSLTProcessor
extends java.lang.Object
implements ProcessorMBean, XSLTProcessorMBean, URIResolver

XSLTPostProcessor pass the document through an XSLT transformation
Version:
$Revision: 1.8 $

Constructor Summary

XSLTProcessor()

Method Summary

void
addMimeType(String extension, String type)
protected Transformer
createTransformer(String path)
String
getDefaultPage()
String
getFile()
protected InputStream
getInputStream(String path)
Locale
getLocale()
String
getName()
String
getPathInJar()
boolean
isUseCache()
boolean
isUseJar()
boolean
isUsePath()
String
notFoundElement(String path, HttpOutputStream out, HttpInputStream in)
String
preProcess(String path)
protected void
processHttpException(HttpInputStream in, HttpOutputStream out, HttpException e)
Source
resolve(String href, String base)
void
setDefaultPage(String defaultPage)
void
setFile(String file)
void
setLocale(Locale locale)
void
setLocaleString(String locale)
void
setPathInJar(String path)
void
setUseCache(boolean useCache)
void
writeError(HttpOutputStream out, HttpInputStream in, Exception e)
void
writeResponse(HttpOutputStream out, HttpInputStream in, Document document)

Constructor Details

XSLTProcessor

public XSLTProcessor()

Method Details

addMimeType

public void addMimeType(String extension,
                        String type)
Specified by:
addMimeType in interface XSLTProcessorMBean

createTransformer

protected Transformer createTransformer(String path)

getDefaultPage

public String getDefaultPage()
Specified by:
getDefaultPage in interface XSLTProcessorMBean

getFile

public String getFile()
Specified by:
getFile in interface XSLTProcessorMBean

getInputStream

protected InputStream getInputStream(String path)

getLocale

public Locale getLocale()
Specified by:
getLocale in interface XSLTProcessorMBean

getName

public String getName()
Specified by:
getName in interface ProcessorMBean

getPathInJar

public String getPathInJar()
Specified by:
getPathInJar in interface XSLTProcessorMBean

isUseCache

public boolean isUseCache()
Specified by:
isUseCache in interface XSLTProcessorMBean

isUseJar

public boolean isUseJar()
Specified by:
isUseJar in interface XSLTProcessorMBean

isUsePath

public boolean isUsePath()
Specified by:
isUsePath in interface XSLTProcessorMBean

notFoundElement

public String notFoundElement(String path,
                              HttpOutputStream out,
                              HttpInputStream in)
            throws IOException,
                   HttpException
Specified by:
notFoundElement in interface ProcessorMBean

preProcess

public String preProcess(String path)
Specified by:
preProcess in interface ProcessorMBean

processHttpException

protected void processHttpException(HttpInputStream in,
                                    HttpOutputStream out,
                                    HttpException e)
            throws IOException

resolve

public Source resolve(String href,
                      String base)

setDefaultPage

public void setDefaultPage(String defaultPage)
Specified by:
setDefaultPage in interface XSLTProcessorMBean

setFile

public void setFile(String file)
Specified by:
setFile in interface XSLTProcessorMBean

setLocale

public void setLocale(Locale locale)
Specified by:
setLocale in interface XSLTProcessorMBean

setLocaleString

public void setLocaleString(String locale)
Specified by:
setLocaleString in interface XSLTProcessorMBean

setPathInJar

public void setPathInJar(String path)
Specified by:
setPathInJar in interface XSLTProcessorMBean

setUseCache

public void setUseCache(boolean useCache)
Specified by:
setUseCache in interface XSLTProcessorMBean

writeError

public void writeError(HttpOutputStream out,
                       HttpInputStream in,
                       Exception e)
            throws IOException
Specified by:
writeError in interface ProcessorMBean

writeResponse

public void writeResponse(HttpOutputStream out,
                          HttpInputStream in,
                          Document document)
            throws IOException
Specified by:
writeResponse in interface ProcessorMBean

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.