1 52 53 package com.go.teaservlet; 54 55 import java.io.Serializable ; 56 import javax.servlet.http.*; 57 import com.go.teaservlet.io.CharToByteBuffer; 58 import com.go.tea.runtime.OutputReceiver; 59 import com.go.tea.runtime.Substitution; 60 61 69 public interface ApplicationResponse extends HttpServletResponse { 70 74 public boolean isRedirectOrError(); 75 76 80 public CharToByteBuffer getResponseBuffer(); 81 82 99 public HttpContext getHttpContext(); 100 101 117 public void stealOutput(Substitution s, OutputReceiver receiver) 118 throws Exception ; 119 120 130 public DetachedData execDetached(Substitution s) throws Exception ; 131 132 142 public DetachedData execDetached(Command command) throws Exception ; 143 144 154 public boolean insertCommand(Command command) throws Exception ; 155 156 164 public void finish() throws java.io.IOException ; 165 166 public interface DetachedData extends Serializable { 167 public void playback(ApplicationRequest request, 168 ApplicationResponse response) throws Exception ; 169 170 181 public void compress(); 182 183 196 public void compress(int level); 197 } 198 199 public interface Command { 200 public void execute(ApplicationRequest request, 201 ApplicationResponse response) throws Exception ; 202 } 203 } 204 | Popular Tags |