1 /* Written and copyright 2001 Benjamin Kohl.
2 * Distributed under the GNU General Public License; see the README file.
3 * This code comes with NO WARRANTY.
5 * Title: jHTTPp2: Java HTTP Filter Proxy
6 * Description: An OpenSource HTTP Proxy
7 * Copyright: Copyright (c) 2001 Benjamin Kohl
8 * @author Benjamin Kohl
11 public class OnURLAction {
13 private String customerrortext, desc, httppath, newlocation;
14 private boolean log,block,customtext,http_rq,anotherlocation;
15 public OnURLAction(String desc)
19 public void denyAccess(String customerrortext)
23 this.customerrortext=customerrortext;
25 public void denyAccess()
29 public void logAccess()
33 public void anotherLocation(String newlocation)
35 this.anotherlocation=true;
36 this.newlocation=newlocation;
39 public boolean onAccesssDeny()
43 public boolean onAccessLog()
47 public boolean onAccessDenyWithCustomText()
51 public boolean onAccessSendHTTPRequest()
55 public boolean onAccessRedirect()
57 return this.anotherlocation;
59 public String newLocation()
61 return this.newlocation;
63 public void setHTTPAction(boolean http_rq, String httppath)
66 this.httppath=httppath;
68 public String getCustomErrorText()
70 return customerrortext;
72 public String getDescription()
76 public String toString()