Package org.apache.http.impl.client
Class RequestWrapper
java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.impl.client.RequestWrapper
- All Implemented Interfaces:
HttpUriRequest,org.apache.http.HttpMessage,org.apache.http.HttpRequest
- Direct Known Subclasses:
EntityEnclosingRequestWrapper
@Deprecated
public class RequestWrapper
extends org.apache.http.message.AbstractHttpMessage
implements HttpUriRequest
Deprecated.
(4.3) do not use.
A wrapper class for
HttpRequests that can be used to change
properties of the current request without modifying the original
object.
This class is also capable of resetting the request headers to the state of the original request.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intDeprecated.private StringDeprecated.private final org.apache.http.HttpRequestDeprecated.private URIDeprecated.private org.apache.http.ProtocolVersionDeprecated.Fields inherited from class org.apache.http.message.AbstractHttpMessage
headergroup, params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Deprecated.Aborts execution of the request.intDeprecated.Deprecated.Returns the HTTP method this request uses, such asGET,PUT,POST, or other.org.apache.http.HttpRequestDeprecated.org.apache.http.ProtocolVersionDeprecated.org.apache.http.RequestLineDeprecated.getURI()Deprecated.Returns the URI this request uses, such ashttp://example.org/path/to/file.voidDeprecated.booleanDeprecated.Tests if the request execution has been aborted.booleanDeprecated.voidDeprecated.voidDeprecated.voidsetProtocolVersion(org.apache.http.ProtocolVersion version) Deprecated.voidDeprecated.Methods inherited from class org.apache.http.message.AbstractHttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
-
Field Details
-
original
private final org.apache.http.HttpRequest originalDeprecated. -
uri
Deprecated. -
method
Deprecated. -
version
private org.apache.http.ProtocolVersion versionDeprecated. -
execCount
private int execCountDeprecated.
-
-
Constructor Details
-
RequestWrapper
public RequestWrapper(org.apache.http.HttpRequest request) throws org.apache.http.ProtocolException Deprecated.- Throws:
org.apache.http.ProtocolException
-
-
Method Details
-
resetHeaders
public void resetHeaders()Deprecated. -
getMethod
Deprecated.Description copied from interface:HttpUriRequestReturns the HTTP method this request uses, such asGET,PUT,POST, or other.- Specified by:
getMethodin interfaceHttpUriRequest
-
setMethod
Deprecated. -
getProtocolVersion
public org.apache.http.ProtocolVersion getProtocolVersion()Deprecated.- Specified by:
getProtocolVersionin interfaceorg.apache.http.HttpMessage
-
setProtocolVersion
public void setProtocolVersion(org.apache.http.ProtocolVersion version) Deprecated. -
getURI
Deprecated.Description copied from interface:HttpUriRequestReturns the URI this request uses, such ashttp://example.org/path/to/file.Note that the URI may be absolute URI (as above) or may be a relative URI.
Implementations are encouraged to return the URI that was initially requested.
To find the final URI after any redirects have been processed, please see the section entitled HTTP execution context in the HttpClient Tutorial
- Specified by:
getURIin interfaceHttpUriRequest
-
setURI
Deprecated. -
getRequestLine
public org.apache.http.RequestLine getRequestLine()Deprecated.- Specified by:
getRequestLinein interfaceorg.apache.http.HttpRequest
-
abort
Deprecated.Description copied from interface:HttpUriRequestAborts execution of the request.- Specified by:
abortin interfaceHttpUriRequest- Throws:
UnsupportedOperationException- if the abort operation is not supported / cannot be implemented.
-
isAborted
public boolean isAborted()Deprecated.Description copied from interface:HttpUriRequestTests if the request execution has been aborted.- Specified by:
isAbortedin interfaceHttpUriRequest- Returns:
trueif the request execution has been aborted,falseotherwise.
-
getOriginal
public org.apache.http.HttpRequest getOriginal()Deprecated. -
isRepeatable
public boolean isRepeatable()Deprecated. -
getExecCount
public int getExecCount()Deprecated. -
incrementExecCount
public void incrementExecCount()Deprecated.
-