1 package org.apache.turbine.modules.screens; 2 3 18 19 21 import org.apache.ecs.ConcreteElement; 22 import org.apache.turbine.modules.Screen; 23 import org.apache.turbine.util.RunData; 24 25 40 public abstract class RawScreen extends Screen 41 { 42 50 protected final ConcreteElement doBuild(RunData data) 51 throws Exception 52 { 53 data.getResponse().setContentType(getContentType(data)); 54 data.declareDirectResponse(); 55 doOutput(data); 56 return null; 57 } 58 59 66 protected abstract String getContentType(RunData data); 67 68 76 protected abstract void doOutput(RunData data) 77 throws Exception ; 78 79 85 public final String getLayout(RunData data) 86 { 87 return null; 88 } 89 } 90 | Popular Tags |