uklance / tapestry-offline

Offline rendering of tapestry pages and components without a HTTP request
5 stars 3 forks source link

Spoof HttpServletRequest and HttpServletResponse #7

Open uklance opened 10 years ago

uklance commented 10 years ago

Replace OfflineObjectFactory with OfflineContextFactory

public interface OfflineContextFactory {
   OfflineContext createOfflineContext(OfflineRequestContext requestContext, PrintWriter writer);
   OfflineContext createOfflineContext(OfflineRequestContext requestContext, OutputStream out);
}
public interface OfflineContext {
   HttpServletRequest getHttpServletRequest();
   HttpServletResponse getHttpServletResponse();
   Request getRequest();
   Response getResponse();
}
uklance commented 9 years ago

Need to consider the implications of breaking the fix suggested in #4