| Modifier and Type | Class and Description |
|---|---|
| private static class | URLLoader.
Signals an invalid response from the server. |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final ByteBufferPool | |
| private volatile boolean | |
| private final long | |
| private static final String | |
| private FormDataElement[] | |
| private static final String | |
| private static final String | |
| private final String | |
| private static final PlatformLogger | |
| private static final int | |
| private String | |
| private String | |
| private final WebPage |
| Access | Constructor and Description |
|---|---|
| pack-priv | URLLoader(WebPage webPage, ByteBufferPool byteBufferPool, boolean asynchronous, String url, String method, String headers, FormDataElement[] formDataElements, long data)
Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private void | |
| private static void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private static String | extractContentEncoding(URLConnection c)
Given a |
| private static long | extractContentLength(URLConnection c)
Given a |
| private static String | extractHeaders(URLConnection c)
Given a |
| private static int | extractStatus(URLConnection c)
Given a |
| public void | |
| private void | |
| private void | |
| private void | |
| private void | notifyDidReceiveResponse(int status, String contentType, String contentEncoding, long contentLength, String headers, String url)
|
| private void | |
| private void | notifyWillSendRequest(int status, String contentType, String contentEncoding, long contentLength, String headers, String url)
|
| private void | |
| private void | |
| public void | |
| private void | |
| private void | |
| private static void |
| asynchronous | back to summary |
|---|---|
| private final boolean asynchronous | |
| byteBufferPool | back to summary |
|---|---|
| private final ByteBufferPool byteBufferPool | |
| canceled | back to summary |
|---|---|
| private volatile boolean canceled | |
| data | back to summary |
|---|---|
| private final long data | |
| DELETE | back to summary |
|---|---|
| private static final String DELETE | |
| formDataElements | back to summary |
|---|---|
| private FormDataElement[] formDataElements | |
| GET | back to summary |
|---|---|
| private static final String GET | |
| HEAD | back to summary |
|---|---|
| private static final String HEAD | |
| headers | back to summary |
|---|---|
| private final String headers | |
| logger | back to summary |
|---|---|
| private static final PlatformLogger logger | |
| MAX_BUF_COUNT | back to summary |
|---|---|
| private static final int MAX_BUF_COUNT | |
| method | back to summary |
|---|---|
| private String method | |
| url | back to summary |
|---|---|
| private String url | |
| webPage | back to summary |
|---|---|
| private final WebPage webPage | |
| URLLoader | back to summary |
|---|---|
| pack-priv URLLoader(WebPage webPage, ByteBufferPool byteBufferPool, boolean asynchronous, String url, String method, String headers, FormDataElement[] formDataElements, long data) Creates a new | |
| adjustUrlForWebKit | back to summary |
|---|---|
| private static String adjustUrlForWebKit(String url) Adjust a URL string for passing into WebKit. | |
| callBack | back to summary |
|---|---|
| private void callBack(Runnable runnable) | |
| close | back to summary |
|---|---|
| private static void close(URLConnection c) Releases the resources that may be associated with a connection. | |
| didFail | back to summary |
|---|---|
| private void didFail(final int errorCode, final String message) | |
| didFinishLoading | back to summary |
|---|---|
| private void didFinishLoading() | |
| didReceiveData | back to summary |
|---|---|
| private void didReceiveData(final ByteBuffer byteBuffer, final ByteBufferAllocator allocator) | |
| didReceiveResponse | back to summary |
|---|---|
| private void didReceiveResponse(URLConnection c) | |
| didSendData | back to summary |
|---|---|
| private void didSendData(final long totalBytesSent, final long totalBytesToBeSent) | |
| extractContentEncoding | back to summary |
|---|---|
| private static String extractContentEncoding(URLConnection c) Given a | |
| extractContentLength | back to summary |
|---|---|
| private static long extractContentLength(URLConnection c) Given a | |
| extractHeaders | back to summary |
|---|---|
| private static String extractHeaders(URLConnection c) Given a | |
| extractStatus | back to summary |
|---|---|
| private static int extractStatus(URLConnection c) Given a | |
| fwkCancel | back to summary |
|---|---|
| public void fwkCancel() Implements abstract com. Cancels this loader.
| |
| notifyDidFail | back to summary |
|---|---|
| private void notifyDidFail(int errorCode, String url, String message) | |
| notifyDidFinishLoading | back to summary |
|---|---|
| private void notifyDidFinishLoading() | |
| notifyDidReceiveData | back to summary |
|---|---|
| private void notifyDidReceiveData(ByteBuffer byteBuffer, int position, int remaining) | |
| notifyDidReceiveResponse | back to summary |
|---|---|
| private void notifyDidReceiveResponse(int status, String contentType, String contentEncoding, long contentLength, String headers, String url) | |
| notifyDidSendData | back to summary |
|---|---|
| private void notifyDidSendData(long totalBytesSent, long totalBytesToBeSent) | |
| notifyWillSendRequest | back to summary |
|---|---|
| private void notifyWillSendRequest(int status, String contentType, String contentEncoding, long contentLength, String headers, String url) | |
| prepareConnection | back to summary |
|---|---|
| private void prepareConnection(URLConnection c) throws IOException Prepares a connection. | |
| receiveResponse | back to summary |
|---|---|
| private void receiveResponse(URLConnection c) throws IOException, InterruptedException Receives response from the server. | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| sendRequest | back to summary |
|---|---|
| private void sendRequest(URLConnection c, boolean streaming) throws IOException Sends request to the server. | |
| willSendRequest | back to summary |
|---|---|
| private void willSendRequest(URLConnection c) | |
| workaround7177996 | back to summary |
|---|---|
| private static void workaround7177996(URL url) throws FileNotFoundException | |
| Access | Constructor and Description |
|---|---|
| private |
| InvalidResponseException | back to summary |
|---|---|
| private InvalidResponseException() | |