Interface representing an HTTP request that can be aborted by shutting down the underlying HTTP connection. More...
The following notice applies to the original API on which this API is based, and to its documentation. The documentation of this API has been revised from the original.
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
Public Member Functions | |
void | setConnectionRequest (ClientConnectionRequest connRequest) throws IOException |
Sets the com.good.gd.apache.http.conn.ClientConnectionRequest callback that can be used to abort a long-lived request for a connection. More... | |
void | setReleaseTrigger (ConnectionReleaseTrigger releaseTrigger) throws IOException |
Sets the com.good.gd.apache.http.conn.ConnectionReleaseTrigger callback that can be used to abort an active connection. More... | |
void | abort () |
Aborts this http request. More... | |
void setConnectionRequest | ( | ClientConnectionRequest | connRequest | ) | throws IOException |
If the request is already aborted, throws an java.io.IOException.
Implemented in HttpRequestBase.
void setReleaseTrigger | ( | ConnectionReleaseTrigger | releaseTrigger | ) | throws IOException |
Typically, this will be the com.good.gd.apache.http.conn.ManagedClientConnection itself. If the request is already aborted, throws an java.io.IOException.
Implemented in HttpRequestBase.
void abort | ( | ) |
Any active execution of this method should return immediately. If the request has not started, it will abort after the next execution. Aborting this request will cause all subsequent executions with this request to fail.
Implemented in HttpRequestBase.