mx4j.adaptor.http
Interface XSLTProcessorMBean

All Superinterfaces:
ProcessorMBean
All Known Implementing Classes:
XSLTProcessor

public interface XSLTProcessorMBean
extends ProcessorMBean

Management interface of the XSLTPostProcessor

Version:
$Revision: 1.2 $
Author:
Carlos Quiroz

Method Summary
 void addMimeType(java.lang.String extension, java.lang.String type)
          Adds a mime type if the defaults one are not enough.
 java.lang.String getFile()
          Returns the file or dir containing the transformation files
 java.lang.String getPathInJar()
          Returns the path of the files in the jar file.
 boolean isUseCache()
           
 boolean isUseJar()
          Indicates whether the xsl files are read form a jar file
 boolean isUsePath()
          Indicates whether the xsl files are read form a dir in the filesystem
 void setFile(java.lang.String file)
          Sets the root file of the transformation files.
 void setPathInJar(java.lang.String path)
          If you are using a .jar or .zip file, you may use the root path indicating the location of the files in the jar.
 void setUseCache(boolean useCache)
          Use cache.
 
Methods inherited from interface mx4j.adaptor.http.ProcessorMBean
getName, notFoundElement, preProcess, writeError, writeResponse
 

Method Detail

setFile

public void setFile(java.lang.String file)
Sets the root file of the transformation files. The XSLT processor requires to know where the XSLT and other files are. If the path points to a .jar or .zip file, then the files are directly loaded from it. If not the files are loaded directly from file. If null the files carried on the same class' jar are used. If you use a .jar or .zip set also the root path

getFile

public java.lang.String getFile()
Returns the file or dir containing the transformation files

setPathInJar

public void setPathInJar(java.lang.String path)
If you are using a .jar or .zip file, you may use the root path indicating the location of the files in the jar.

getPathInJar

public java.lang.String getPathInJar()
Returns the path of the files in the jar file.

isUseJar

public boolean isUseJar()
Indicates whether the xsl files are read form a jar file

isUsePath

public boolean isUsePath()
Indicates whether the xsl files are read form a dir in the filesystem

setUseCache

public void setUseCache(boolean useCache)
Use cache. If set the XSLT transformation are cached. This is true by default but you may want to set it to false for development

isUseCache

public boolean isUseCache()

addMimeType

public void addMimeType(java.lang.String extension,
                        java.lang.String type)
Adds a mime type if the defaults one are not enough. Use as addMimeType(".gif", "image/gif");