Skip to content

Most visited

Recently visited

navigation

HttpUriRequest | Android Developers

to top
Android APIs
public interface

HttpUriRequest

implements HttpRequest
org.apache.http.client.methods.HttpUriRequest
Known Indirect Subclasses

Class Overview

Extended version of the HttpRequest interface that provides convenience methods to access request properties such as request URI and method type.

Summary

Public Methods
abstract void abort()
Aborts execution of the request.
abstract String getMethod()
Returns the HTTP method this request uses, such as GET, PUT, POST, or other.
abstract URI getURI()
Returns the URI this request uses, such as http://example.org/path/to/file.
abstract boolean isAborted()
Tests if the request execution has been aborted.
[Expand]
Inherited Methods
From interface org.apache.http.HttpMessage
From interface org.apache.http.HttpRequest

Public Methods

public abstract void abort ()

Added in API level 1

Aborts execution of the request.

Throws
UnsupportedOperationException if the abort operation is not supported / cannot be implemented.

public abstract String getMethod ()

Added in API level 1

Returns the HTTP method this request uses, such as GET, PUT, POST, or other.

public abstract URI getURI ()

Added in API level 1

Returns the URI this request uses, such as http://example.org/path/to/file.

public abstract boolean isAborted ()

Added in API level 1

Tests if the request execution has been aborted.

Returns
  • true if the request execution has been aborted, false otherwise.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.