|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.terminal.web.UIDLTransformer
public class UIDLTransformer
Class implementing the UIDLTransformer.
The transformer 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.
| Nested Class Summary | |
|---|---|
protected class |
UIDLTransformer.TransformerErrorHandler
|
| Field Summary | |
|---|---|
protected static TransformerFactory |
xsltFactory
XSLT factory. |
| Constructor Summary | |
|---|---|
UIDLTransformer(UIDLTransformerType type,
ThemeSource themes,
ApplicationServlet webAdapterServlet)
UIDLTransformer constructor. |
|
| Method Summary | |
|---|---|
WebPaintTarget |
getPaintTarget(HttpVariableMap variableMap)
Attaches the output stream to transformer and get corresponding UIDLStream for writing UI description language trough transform to given output. |
UIDLTransformerType |
getTransformerType()
Gets the type of the transformer. |
protected void |
reset()
Resets the transformer, before it can be used again. |
void |
transform(OutputStream outputStream)
Transforms 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 |
|---|
protected static TransformerFactory xsltFactory
| Constructor Detail |
|---|
public UIDLTransformer(UIDLTransformerType type,
ThemeSource themes,
ApplicationServlet webAdapterServlet)
throws UIDLTransformerException
type - the Type of the transformer.themes - the theme implemented by the transformer.webAdapterServlet - the Adapter servlet.
UIDLTransformerException - UIDLTransformer exception is thrown, if the transform can not
be created.| Method Detail |
|---|
public UIDLTransformerType getTransformerType()
public WebPaintTarget getPaintTarget(HttpVariableMap variableMap)
variableMap - the variable map used for UIDL creation.
protected void reset()
UIDLTransformerFactory.releaseTransformer(UIDLTransformer)
public void transform(OutputStream outputStream)
throws UIDLTransformerException
outputStream - the output stream to render to.
UIDLTransformerException - UIDLTransformer exception is thrown, if the transform can not
be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||