org.gwtopenmaps.openlayers.server
Class GwtOpenLayersProxyServlet

java.lang.Object
  extended by HttpServlet
      extended by org.gwtopenmaps.openlayers.server.GwtOpenLayersProxyServlet

public class GwtOpenLayersProxyServlet
extends HttpServlet

OpenLayers contains an Open Proxy written in Python to circumvent browser restrictions on cross-domain requests with Javascript. This proxy is included in the Examples. This is a similar Open Proxy written in Java. Parameter expected for GET/POST requests: targetURL - the full remote URL to proxy the request to In addition, a POST request should specify a body. What are the plans for OpenLayers 3.x with the Open Proxy? Initial code for this proxy is based upon the following code: http://trac.openlayers.org/changeset/8099/sandbox?format=diff&new=8099 see also: http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html


Constructor Summary
GwtOpenLayersProxyServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
           
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GwtOpenLayersProxyServlet

public GwtOpenLayersProxyServlet()
Method Detail

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     java.io.IOException
Throws:
ServletException
java.io.IOException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      java.io.IOException
Throws:
ServletException
java.io.IOException