/[storm]/storm/org/nongnu/storm/util/HTTPProxy.java
ViewVC logotype

Diff of /storm/org/nongnu/storm/util/HTTPProxy.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by tuukkah, Tue May 6 17:08:42 2003 UTC revision 1.21 by tuukkah, Tue May 6 18:20:54 2003 UTC
# Line 80  public class HTTPProxy implements Runnab Line 80  public class HTTPProxy implements Runnab
80          protected HTTPResponse doGet(HTTPRequest req,          protected HTTPResponse doGet(HTTPRequest req,
81                                       HTTPResponse.Factory resf) throws IOException {                                       HTTPResponse.Factory resf) throws IOException {
82              try {              try {
83                                    boolean rewrite = false, backlinks = false;
84                  String uri = req.getRequestURI();                                                String uri = req.getRequestURI();                                               if(HTTPProxy.dbg) p("<"+port+"> GET: "+uri + " (" + this.getRemoteIPAddress() + ")");
85                  if(HTTPProxy.dbg) p("<"+port+"> GET: "+uri + " (" + this.getRemoteIPAddress() + ")");  
86                    /* URN proxy requests start directly with "urn:" */
87                  if(uri.startsWith("/")) uri = uri.substring(1);                  if(uri.startsWith("/")) uri = uri.substring(1);
88    
89                  boolean rewrite = false, backlinks = false;                  if(uri.equals(URNPAC)) {
90                        return makePAC(req, resf);
91                    }
92    
93                  if(uri.startsWith("rewrite/")) {                  if(uri.startsWith("rewrite/")) {
94                      uri = uri.substring("rewrite/".length());                      uri = uri.substring("rewrite/".length());
95                      rewrite = true;                      rewrite = true;
                 } else if(uri.equals(URNPAC)) {  
                     return makePAC(req, resf);  
96                  }                  }
97    
98                  if(uri.startsWith("backlinks/")) {                  if(uri.startsWith("backlinks/")) {

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26