|
Milyn-Smooks Version 0.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.milyn.delivery.SmooksHtml
Smooks HTML content manipulation and delivery class.
This executes the 3 phases of HTML content delivery. The Assembly and Transformation phases are executed by theapplyTransform(Document)
method and the Serialisation phase
is performed by the serailize(Node, Writer)
method.
This class will be controlled by a container specific class. At the moment Smooks is only
supported in the J2EE Servlet Container and this class is hooked into the process
through the HtmlServletResponseWrapper
.
class.
Field Summary | |
static java.lang.String |
DELIVERY_NODE_REQUEST_KEY
Key under which a non-document content delivery node can be set in the request. |
Constructor Summary | |
SmooksHtml(ContainerRequest containerRequest)
Public constructor. |
Method Summary | |
org.w3c.dom.Node |
applyTransform(org.w3c.dom.Document doc)
Transform the supplied W3C Document. |
org.w3c.dom.Node |
applyTransform(java.io.Reader source)
Transform the supplied InputSource. |
void |
serailize(org.w3c.dom.Node node,
java.io.Writer writer)
Serialise the node to the supplied output writer instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DELIVERY_NODE_REQUEST_KEY
Constructor Detail |
public SmooksHtml(ContainerRequest containerRequest)
containerRequest
- Container request for this Smooks content delivery instance.Method Detail |
public org.w3c.dom.Node applyTransform(java.io.Reader source) throws SmooksException
applyTransform(Document)
.
source
- The source of markup to be transformed.
SmooksException
public org.w3c.dom.Node applyTransform(org.w3c.dom.Document doc)
doc
- The W3C Document to be transformed.
public void serailize(org.w3c.dom.Node node, java.io.Writer writer) throws java.io.IOException, SmooksException
Serializer
class to perform the serialization.
node
- Document to be serialised.writer
- Output writer.
CDRArchiveEntryNotFoundException
- DOM Serialiser exception.
java.io.IOException
- Unable to write to output writer.
SmooksException
- Unable to serialise do to bad Smooks environment. Check cause.
|
Milyn-Smooks Version 0.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |