Friday, March 1, 2013

Re: remove final from public final void RemoteServiceServlet.processPost



On Fri, Mar 1, 2013 at 1:13 PM, James <jim.pxie@gmail.com> wrote:
Now (up to version 2.5) we are not allowed to override RemoteServiceServlet.processPost because it is a final method. RemoteServiceServlet just allows String Serialization/Deserialization. My application allow users to download some files (in stream). I can implement this in a regular Java servlet. In this case, same business logic spreads two classes. If RemoteServiceServlet.processPost is allowed to override, I can implement it to allow processPost to return either string or stream through response. Does GWT committee have a plan to relieve this restriction?


Why are you not just overriding doPost or doGet ?

@Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
}

...

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment