home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: Java
/
Java.zip
/
jload18.zip
/
request.java
< prev
next >
Wrap
Text File
|
1999-12-02
|
1KB
|
67 lines
public final class request implements Cloneable
{
public String url;
public location loc;
public short depth;
public boolean depthset;
public byte act,update,size;
public short log;
public int sizelimit,updatelimit; // -1 is no limit
public byte retry;
request(String url,location loc)
{
retry=0;
this.url=url;
this.loc=loc;
depthset=false;
depth=loc.depth;
act=update=size=0;
sizelimit=mask.SIZE_NOLIMIT;
updatelimit=mask.UPD_NOLIMIT;
log=loc.defaultmask.log;
}
request(String url,location loc,mask m,short rdepth,boolean rdepthset)
{
retry=0;
this.url=url;
this.loc=loc;
depthset=rdepthset;
act=m.action;
log=m.log;
update=m.update;
size=m.size;
sizelimit=m.sizelimit;
updatelimit=m.updatelimit;
if(m.depth!=mask.DEPTH_NOCHANGE)
if (rdepthset==false)
{ depth=m.depth;depthset=true;}
else
depth=(short)Math.min(m.depth,rdepth);
else
depth=rdepth;
}
public final boolean equals(Object o)
{
if(o instanceof request)
return url.equals(((request)o).url);
else
return false;
}
public final int hashCode()
{
return url.hashCode();
}
public final Object clone () throws CloneNotSupportedException
{
return super.clone();
}
}