| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| private Map | |
| protected final String | |
| protected final String | |
| private Map | |
| protected final String |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | AbstractRemoteResource(String url, String method, String outboundContent, AsyncOperationListener<T> listener)
|
| Modifier and Type | Method and Description |
|---|---|
| public T | call()
Implements java. Computes a result, or throws an exception if unable to do so. |
| public String | |
| protected abstract T | |
| public void |
| fileSize | back to summary |
|---|---|
| protected int fileSize | |
| headers | back to summary |
|---|---|
| private Map<String, String> headers | |
| method | back to summary |
|---|---|
| protected final String method | |
| outboundContent | back to summary |
|---|---|
| protected final String outboundContent | |
| responseHeaders | back to summary |
|---|---|
| private Map<String, List<String>> responseHeaders | |
| url | back to summary |
|---|---|
| protected final String url | |
| AbstractRemoteResource | back to summary |
|---|---|
| protected AbstractRemoteResource(String url, AsyncOperationListener<T> listener) | |
| AbstractRemoteResource | back to summary |
|---|---|
| protected AbstractRemoteResource(String url, String method, AsyncOperationListener<T> listener) | |
| AbstractRemoteResource | back to summary |
|---|---|
| protected AbstractRemoteResource(String url, String method, String outboundContent, AsyncOperationListener<T> listener) | |
| call | back to summary |
|---|---|
| public T call() throws IOException Implements java. Doc from java. Computes a result, or throws an exception if unable to do so.
| |
| getResponseHeader | back to summary |
|---|---|
| public String getResponseHeader(String header) | |
| processStream | back to summary |
|---|---|
| protected abstract T processStream(InputStream stream) throws IOException | |
| setHeader | back to summary |
|---|---|
| public void setHeader(String header, String value) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized int | read()
Overrides java. See
the general contract of the |
| public synchronized int | read(byte[]
destination buffer. b, int offset at which to start storing bytes. off, int maximum number of bytes to read. len)Overrides java. Reads bytes from this byte-input stream into the specified byte array, starting at the given offset. |
| public int | read(byte[]
the buffer into which the data is read. b)Overrides java. Reads up to |
| ProgressInputStream | back to summary |
|---|---|
| public ProgressInputStream(InputStream in) | |
| read | back to summary |
|---|---|
| public synchronized int read() throws IOException Overrides java. Doc from java. See
the general contract of the
| |
| read | back to summary |
|---|---|
| public synchronized int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads bytes from this byte-input stream into the specified byte array, starting at the given offset. This method implements the general contract of the corresponding
read on the underlying stream returns
-1 to indicate end-of-file then this method returns
-1. Otherwise, this method returns the number of bytes
actually read.
Subclasses of this class are encouraged, but not required, to attempt to read as many bytes as possible in the same fashion.
| |
| read | back to summary |
|---|---|
| public int read(byte[] b) throws IOException Overrides java. Doc from java. Reads up to
| |