| Design Question about IServiceHandler [message #933700] |
Fri, 05 October 2012 04:56  |
Christian Schwarz Messages: 31 Registered: July 2009 |
Member |
|
|
I am currently implementing my first org.eclipse.rwt.service.IServiceHandler. I wonder why IServiceHandler#service() takes no HttpServlerRequest/Response arguments, instead one have to call the static RWT.getRequest() and RWT.getResponse(). To me it smells bad, who prevent me to call these static methods anywhere else in my code, and what is the effect? Its also hard to test the IServiceHandler implementation.
Wouldn't IServiceHandler#service(HttpServletRequest,HttpServletResponse) fit better here? Hopefully RAP 2.0 can fix this.
[Updated on: Fri, 05 October 2012 06:55] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01620 seconds