|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DownloadStreamOpener
Interface for opening stream to downloaded resource. Library implementation assumes, that stream closing will be handled by stream opener class.
| Field Summary | |
|---|---|
static int |
NETWORK_ERROR
Error code for network error |
static int |
RESPONCE_NOT_OK
Error code for response with other responce code then 200. |
static int |
SECURITY_EXCEPTION
Error code for security exception, when network connection was opened. |
static int |
TOO_MANY_REDIRECTS
Maximum number of HTTP redirects has been reached. |
| Method Summary | |
|---|---|
long |
getTimeout()
|
void |
openInputStream(DownloadStreamWaiter streamWaiter,
DataPostingDownloadable postingDownloadable)
|
void |
openInputStream(DownloadStreamWaiter streamWaiter,
java.lang.String url)
Open a connection to given network resource and pass opened stream to streamWaiter. |
| Field Detail |
|---|
static final int NETWORK_ERROR
static final int RESPONCE_NOT_OK
static final int SECURITY_EXCEPTION
static final int TOO_MANY_REDIRECTS
| Method Detail |
|---|
void openInputStream(DownloadStreamWaiter streamWaiter,
java.lang.String url)
streamWaiter - object asking for stream to be openedurl - URL to network resource
void openInputStream(DownloadStreamWaiter streamWaiter,
DataPostingDownloadable postingDownloadable)
long getTimeout()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||