• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
AbortableHttpRequest Interface Reference

Interface representing an HTTP request that can be aborted by shutting down the underlying HTTP connection. More...

Inheritance diagram for AbortableHttpRequest:
HttpRequestBase HttpDelete HttpEntityEnclosingRequestBase HttpGet HttpHead HttpOptions HttpTrace HttpPatch HttpPost HttpPut

Description

Author
Oleg Kalnichevski
Version
Revision
639600
Since
4.0

Notice

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...
 

Member Function Documentation

◆ setConnectionRequest()

void setConnectionRequest ( ClientConnectionRequest  connRequest) throws IOException

If the request is already aborted, throws an java.io.IOException.

See also
ClientConnectionManager
ThreadSafeClientConnManager

Implemented in HttpRequestBase.

◆ setReleaseTrigger()

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.

◆ abort()

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.

See also
HttpClient::execute(HttpUriRequest)
HttpClient::execute(org.apache.http.HttpHost, org.apache.http.HttpRequest)
HttpClient::execute(HttpUriRequest, org.apache.http.protocol.HttpContext)
HttpClient::execute(org.apache.http.HttpHost, org.apache.http.HttpRequest, org.apache.http.protocol.HttpContext)

Implemented in HttpRequestBase.