|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.turbine.modules.Assembler
org.apache.turbine.modules.Screen
org.apache.turbine.modules.screens.RawScreen
public abstract class RawScreen
Base class for writing Screens that output binary data. This class
is provided as a helper class for those who want to write Screens
that output raw binary data. For example, it may be extended into
a Screen that outputs a SVG file or a SWF (Flash Player format)
movie. The only thing one has to do is to implement the two
methods getContentType(RunData data) and
doOutput(RunData data) (see below).
You migth want to take a look at the ImageServer screen class
contained in the TDK.
| Field Summary |
|---|
| Fields inherited from class org.apache.turbine.modules.Screen |
|---|
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX |
| Constructor Summary | |
|---|---|
RawScreen()
|
|
| Method Summary | |
|---|---|
protected org.apache.ecs.ConcreteElement |
doBuild(PipelineData pipelineData)
Build the Screen. |
protected org.apache.ecs.ConcreteElement |
doBuild(RunData data)
Deprecated. Use PipelineData version instead. |
protected void |
doOutput(PipelineData pipelineData)
Actually output the dynamic content. |
protected abstract void |
doOutput(RunData data)
Deprecated. Use PipelineData version instead. |
protected java.lang.String |
getContentType(PipelineData pipelineData)
Set the content type. |
protected abstract java.lang.String |
getContentType(RunData data)
Deprecated. Use PipelineData version instead. |
java.lang.String |
getLayout(PipelineData pipelineData)
The layout must be set to null. |
java.lang.String |
getLayout(RunData data)
Deprecated. Use PipelineData version instead. |
| Methods inherited from class org.apache.turbine.modules.Screen |
|---|
build, build, getPrefix, prepareText, prepareTextMinimum, setLayout, setLayout |
| Methods inherited from class org.apache.turbine.modules.Assembler |
|---|
getRunData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RawScreen()
| Method Detail |
|---|
protected final org.apache.ecs.ConcreteElement doBuild(RunData data)
throws java.lang.Exception
doBuild in class Screendata - Turbine information.
Exception, - a generic exception.
java.lang.Exception - a generic exception.
protected final org.apache.ecs.ConcreteElement doBuild(PipelineData pipelineData)
throws java.lang.Exception
doBuild in class Screendata - Turbine information.
Exception, - a generic exception.
java.lang.Exception - a generic exception.protected abstract java.lang.String getContentType(RunData data)
data - Turbine information.
protected java.lang.String getContentType(PipelineData pipelineData)
data - Turbine information.
protected abstract void doOutput(RunData data)
throws java.lang.Exception
OutputStream out = data.getResponse().getOutputStream();.
data - Turbine information.
Exception, - a generic exception.
java.lang.Exception
protected void doOutput(PipelineData pipelineData)
throws java.lang.Exception
OutputStream out = data.getResponse().getOutputStream();.
data - Turbine information.
Exception, - a generic exception.
java.lang.Exceptionpublic final java.lang.String getLayout(RunData data)
getLayout in class Screendata - Turbine information.
public final java.lang.String getLayout(PipelineData pipelineData)
getLayout in class Screendata - Turbine information.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||