public class UrlResource extends StreamResource
| Modifier and Type | Field and Description |
|---|---|
private int |
timeout |
private java.net.URL |
url |
| Constructor and Description |
|---|
UrlResource(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
fetchStream() |
java.lang.String |
getName() |
boolean |
refresh() |
Resource |
resolve(java.lang.String relativePath) |
void |
setTimeout(int timeout) |
fetchContent, setEncodinggetContent, invalidateCachedContentpublic void setTimeout(int timeout)
public java.io.InputStream fetchStream()
throws java.io.IOException
fetchStream in class StreamResourcejava.io.IOExceptionpublic boolean refresh()
throws java.io.IOException