Im trying this on google appengine:
public class MyFilter implements javax.servlet.Filter {
public void doFilter(ServletRequest servletRequest, ServletResponse
response, FilterChain filterChain) throws IOException,
ServletException {
response.getWriter().print("port " + ((HttpServletRequest)
servletRequest).getLocalPort() );
}
}
Testing this local url: http://localhost:8080/test.servlet
AppEngine is returning 8080 on HttpServletRequest.getLocalPort().
Testing this remote url: http://myapp.appspot.com/test.servlet
AppEngine is returning 0 on HttpServletRequest.getLocalPort().
Anyone can test this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---