A Webproxy written in Java using the Servlet technology.
- Proxy-Connection
- Caching requested files
- Manipulating sites with jquery Selectors
- Java 1.6
- Servlet Container which supplies Servlet 3.0 Api like Tomcat 7 or Jetty 8
-
Proxy Connection
The Servlet ProxyServlet uses the jdk class UrlConnection for handling the requests. In the html of the requests the links to other sites are rewitten to urls that managed by the ProxyServlet. For an example the link "/subpage.html" on the site http://www.example.com is rewritten to http://localhost:8080/webproxy/proxy?targetUrl=http://www.example.com/subpage.html. Link to resources in html-files are rewritten in similliary way.
-
Caching requested files There are two caches
- the file cache saves the visited files in the directory "htmlFileCache". an overview over the filecache can be seen at FileCache.xhtml
- the memory cache can be seen at MemoryCache.xhtml
-
Transformations of the sites via jquery-selectors
Transformations to the requested sites can be declared in the file transformations.txt. The sytax of each transformation is : css-Selektor -> JQueryMethod [-> Parameters]*