|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.lib.resource.AbstractResource
org.spicefactory.lib.resource.HttpResource
public class HttpResource
Resource implementation that loads a resource via HTTP.
| Constructor Summary | |
|---|---|
HttpResource(String url)
Creates a new HTTP resource for the given url. |
|
| Method Summary | |
|---|---|
InputStream |
getInputStream()
Creates an InputStream for this Resource. |
void |
setPassword(String password)
Sets an optional password if authentication is required to load the resource. |
void |
setUsername(String username)
Sets an optional username if authentication is required to load the resource. |
| Methods inherited from class org.spicefactory.lib.resource.AbstractResource |
|---|
getPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpResource(String url)
url - the absolute HTTP URL to load the resource from.| Method Detail |
|---|
public void setPassword(String password)
password - the password to use for authenticationpublic void setUsername(String username)
username - the username to use for authenticationpublic InputStream getInputStream()
Resource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||