From 68a101475a9323126587c72995bec6f265d35fa1 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sun, 26 May 2013 10:59:48 +0000 Subject: [PATCH] HTTPCLIENT-1355: HttpRequestWrapper to implement HttpUriRequest Contributed by James Leigh git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1486407 13f79535-47bb-0310-9956-ffa450edef68 --- .../http/client/methods/HttpRequestWrapper.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java b/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java index cc83d24f9..3bce5ad61 100644 --- a/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java +++ b/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java @@ -50,7 +50,7 @@ import org.apache.http.protocol.HTTP; */ @SuppressWarnings("deprecation") @NotThreadSafe -public class HttpRequestWrapper extends AbstractHttpMessage implements HttpRequest { +public class HttpRequestWrapper extends AbstractHttpMessage implements HttpUriRequest { private final HttpRequest original; private final String method; @@ -86,6 +86,18 @@ public class HttpRequestWrapper extends AbstractHttpMessage implements HttpReque this.uri = uri; } + public String getMethod() { + return method; + } + + public void abort() throws UnsupportedOperationException { + throw new UnsupportedOperationException(); + } + + public boolean isAborted() { + return false; + } + public RequestLine getRequestLine() { String requestUri = null; if (this.uri != null) {