uklance / tapestry-cometd

A push library for Tapestry5 based on CometD
17 stars 3 forks source link

Allow IOC implementations for all FakeRequest / FakeResponse methods #57

Closed uklance closed 11 years ago

uklance commented 11 years ago

Requires a new IOC service

public interface PushEnvironmentSource {
   public HttpSession createHttpSession(BayeuxContext bayeuxContext);
   public HttpServletRequest createHttpServletRequest(Map<String, String> headers, HttpSession session);
   public HttpServletResponse createHttpServletResponse(OutputStream out);
}

This service can then be invoked by AuthorizersImpl and ComponentJSONRendererImpl

uklance commented 11 years ago

@see https://github.com/uklance/tapestry-offline