org.apache.http.client.methods
Interface HttpUriRequest

All Superinterfaces:
org.apache.http.HttpMessage, org.apache.http.HttpRequest
All Known Implementing Classes:
EntityEnclosingRequestWrapper, HttpDelete, HttpEntityEnclosingRequestBase, HttpGet, HttpHead, HttpOptions, HttpPost, HttpPut, HttpRequestBase, HttpTrace, RequestWrapper

public interface HttpUriRequest
extends org.apache.http.HttpRequest

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

Since:
4.0
Version:
$Revision: 659191 $
Author:
Oleg Kalnichevski

Method Summary
 void abort()
          Aborts execution of the request.
 java.lang.String getMethod()
          Returns the HTTP method this request uses, such as GET, PUT, POST, or other.
 java.net.URI getURI()
          Returns the URI this request uses, such as http://example.org/path/to/file.
 boolean isAborted()
          Tests if the request execution has been aborted.
 
Methods inherited from interface org.apache.http.HttpRequest
getRequestLine
 
Methods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
 

Method Detail

getMethod

java.lang.String getMethod()
Returns the HTTP method this request uses, such as GET, PUT, POST, or other.


getURI

java.net.URI getURI()
Returns the URI this request uses, such as http://example.org/path/to/file.


abort

void abort()
           throws java.lang.UnsupportedOperationException
Aborts execution of the request.

Throws:
java.lang.UnsupportedOperationException - if the abort operation is not supported / cannot be implemented.

isAborted

boolean isAborted()
Tests if the request execution has been aborted.

Returns:
true if the request execution has been aborted, false otherwise.


Copyright © 1999-2008 Apache Software Foundation. All Rights Reserved.