|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.util.WebResource
public class WebResource
A WebResource is backed by an URL and potentially the proxy through which it need go. It can get basic information about the resource and it can get the resource.
for license details.
The copyright to this program is
held by it's authors.
Field Summary | |
---|---|
private org.apache.commons.httpclient.HttpClient |
client
|
private static int |
TIMEOUT
Define a 750 ms timeout to get a connection |
private URI |
uri
|
Constructor Summary | |
---|---|
WebResource(URI theURI)
|
|
WebResource(URI theURI,
String theProxyHost)
|
|
WebResource(URI theURI,
String theProxyHost,
Integer theProxyPort)
|
Method Summary | |
---|---|
void |
copy(URI dest)
Copy this WebResource to the destination. |
long |
getLastModified()
Determine the last modified date of this WebResource. |
int |
getSize()
Determine the size of this WebResource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int TIMEOUT
private URI uri
private org.apache.commons.httpclient.HttpClient client
Constructor Detail |
---|
public WebResource(URI theURI)
public WebResource(URI theURI, String theProxyHost)
public WebResource(URI theURI, String theProxyHost, Integer theProxyPort)
Method Detail |
---|
public int getSize()
Note that the http client may read the entire file to determine this.
public long getLastModified()
Note that the http client may read the entire file.
public void copy(URI dest) throws LucidException
dest
-
LucidException
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |