|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weborganic.berlioz.servlet.XSLTransformResult
public final class XSLTransformResult
Holds the results of a transformation process.
This class holds information about a process such as its content, processing time (in ms), status and exception.
Nested Class Summary | |
---|---|
static class |
XSLTransformResult.Status
The status of a process result. |
Constructor Summary | |
---|---|
XSLTransformResult(CharSequence content,
Exception ex,
Templates templates)
Creates an unsuccessful process result. |
|
XSLTransformResult(CharSequence content,
long time,
Templates templates)
Creates a successful transformation result. |
Method Summary | |
---|---|
CharSequence |
content()
|
String |
getEncoding()
The character encoding for the content. |
String |
getErrorMessage()
|
Exception |
getException()
|
String |
getMediaType()
Returns the media type for this output. |
XSLTransformResult.Status |
status()
Returns the status of the process result. |
long |
time()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSLTransformResult(CharSequence content, long time, Templates templates)
content
- The content.time
- The processing nano seconds.templates
- The templates used for the transformation.public XSLTransformResult(CharSequence content, Exception ex, Templates templates)
content
- The content.ex
- An exception.templates
- The templates used for the transformation.Method Detail |
---|
public CharSequence content()
content
in interface BerliozOutput
public long time()
public XSLTransformResult.Status status()
public String getErrorMessage()
null
if none.public Exception getException()
null
if none.public String getMediaType()
BerliozOutput
getMediaType
in interface BerliozOutput
public String getEncoding()
BerliozOutput
getEncoding
in interface BerliozOutput
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |