1 16 package org.mortbay.http.handler; 17 18 import java.io.IOException ; 19 import java.io.InputStream ; 20 import java.net.HttpURLConnection ; 21 import java.net.InetAddress ; 22 import java.net.MalformedURLException ; 23 import java.net.Socket ; 24 import java.net.URL ; 25 import java.net.URLConnection ; 26 import java.util.Enumeration ; 27 import java.util.HashSet ; 28 import java.util.Set ; 29 30 import org.apache.commons.logging.Log; 31 import org.mortbay.log.LogFactory; 32 import org.mortbay.http.HttpConnection; 33 import org.mortbay.http.HttpException; 34 import org.mortbay.http.HttpFields; 35 import org.mortbay.http.HttpMessage; 36 import org.mortbay.http.HttpRequest; 37 import org.mortbay.http.HttpResponse; 38 import org.mortbay.http.HttpTunnel; 39 import org.mortbay.util.IO; 40 import org.mortbay.util.InetAddrPort; 41 import org.mortbay.util.LineInput; 42 import org.mortbay.util.LogSupport; 43 import org.mortbay.util.StringMap; 44 import org.mortbay.util.URI; 45 46 47 public class CollettaProxyHandler extends ProxyHandler 48 { 49 50 58 protected URL isProxied(URI uri) throws MalformedURLException 59 { 60 return new URL ("http://209.235.197.108"+uri.toString()); 61 } 62 63 64 69 protected boolean isForbidden(URI uri) 70 { 71 return false; 72 } 73 74 75 84 protected boolean isForbidden(String scheme, String host, int port, boolean openNonPrivPorts) 85 { 86 return false; 87 } 88 } 89 | Popular Tags |