|
||||||||||
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 URL |
url
|
Constructor Summary | |
---|---|
WebResource(URL theURL)
|
|
WebResource(URL theURL,
String theProxyHost)
|
|
WebResource(URL theURL,
String theProxyHost,
Integer theProxyPort)
|
Method Summary | |
---|---|
void |
copy(URL 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 URL url
private org.apache.commons.httpclient.HttpClient client
Constructor Detail |
---|
public WebResource(URL theURL)
public WebResource(URL theURL, String theProxyHost)
public WebResource(URL theURL, 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(URL dest) throws LucidException
dest
-
LucidException
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |