org.millstone.webadapter
Class UIDLTransformer

java.lang.Object
  |
  +--org.millstone.webadapter.UIDLTransformer

public class UIDLTransformer
extends java.lang.Object

Class implementing the MillStone WebAdapter UIDLTransformer. The thansformer should not be created directly; it should be contructed using getTransformer() provided by UIDLTransformerFactory. After the transform has been done, the transformer can be recycled with releaseTransformer() by UIDLTransformerFactory.

Since:
3.0
Version:
3.0.3
Author:
IT Mill Ltd.

Nested Class Summary
protected  class UIDLTransformer.TransformerErrorHandler
           
 
Field Summary
protected static javax.xml.transform.TransformerFactory xsltFactory
          XSLT factory
 
Constructor Summary
UIDLTransformer(UIDLTransformerType type, ThemeSource themes, WebAdapterServlet webAdapterServlet)
          UIDLTransformer constructor.
 
Method Summary
 WebPaintTarget getPaintTarget(HttpVariableMap variableMap)
          Attach the output stream to transformer and get corresponding UIDLStream for writing UI description language trough transform to given output.
 UIDLTransformerType getTransformerType()
          Get the type of the transformer.
protected  void reset()
          Reset the transformer, before it can be used again.
 void transform(java.io.OutputStream outputStream)
          Transform the UIDL to HTML and output to the OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xsltFactory

protected static javax.xml.transform.TransformerFactory xsltFactory
XSLT factory

Constructor Detail

UIDLTransformer

public UIDLTransformer(UIDLTransformerType type,
                       ThemeSource themes,
                       WebAdapterServlet webAdapterServlet)
                throws UIDLTransformerException
UIDLTransformer constructor.

Parameters:
type - Type of the transformer
themes - Theme implemented by the transformer
Throws:
UIDLTransformerException - UIDLTransformer exception is thrown, if the transform can not be created.
Method Detail

getTransformerType

public UIDLTransformerType getTransformerType()
Get the type of the transformer.

Returns:
Type of the transformer.

getPaintTarget

public WebPaintTarget getPaintTarget(HttpVariableMap variableMap)
Attach the output stream to transformer and get corresponding UIDLStream for writing UI description language trough transform to given output.

Parameters:
variableMap - The variable map used for UIDL creation.
Returns:
returns UI description language stream, that can be used for writing UIDL to transformer.

reset

protected void reset()
Reset the transformer, before it can be used again. This also interrupts any ongoing transform and thus should not be called before the transform is ready. This is automaticalled by the UIDLTransformFactory, when the UIDLTransformer has been released.

See Also:
UIDLTransformerFactory.releaseTransformer(UIDLTransformer)

transform

public void transform(java.io.OutputStream outputStream)
               throws UIDLTransformerException
Transform the UIDL to HTML and output to the OutputStream.

UIDLTransformerException


Copyright © 2000,2001,2002 IT Mill Ltd. All Rights Reserved.