Package de.xima.fc.http.request
Class HttpCustomMethod
java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.client.methods.AbstractExecutionAwareRequest
org.apache.http.client.methods.HttpRequestBase
org.apache.http.client.methods.HttpEntityEnclosingRequestBase
de.xima.fc.http.request.HttpCustomMethod
- All Implemented Interfaces:
Cloneable,org.apache.http.client.methods.AbortableHttpRequest,org.apache.http.client.methods.Configurable,org.apache.http.client.methods.HttpExecutionAware,org.apache.http.client.methods.HttpUriRequest,org.apache.http.HttpEntityEnclosingRequest,org.apache.http.HttpMessage,org.apache.http.HttpRequest
public class HttpCustomMethod
extends org.apache.http.client.methods.HttpEntityEnclosingRequestBase
A custom HTTP method with the given method name.
- Since:
- 7.0.1
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from class org.apache.http.message.AbstractHttpMessage
headergroup, params -
Constructor Summary
ConstructorsConstructorDescriptionHttpCustomMethod(String method) A new custom method with the given method name.HttpCustomMethod(String method, String uri) A new custom method with the given method name to the given endpoint URL.HttpCustomMethod(String method, URI uri) A new custom method with the given method name to the given endpoint URL. -
Method Summary
Methods inherited from class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
clone, expectContinue, getEntity, setEntityMethods inherited from class org.apache.http.client.methods.HttpRequestBase
getConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toStringMethods inherited from class org.apache.http.client.methods.AbstractExecutionAwareRequest
abort, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTriggerMethods 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsMethods inherited from interface org.apache.http.HttpRequest
getRequestLineMethods inherited from interface org.apache.http.client.methods.HttpUriRequest
abort, isAborted
-
Constructor Details
-
HttpCustomMethod
A new custom method with the given method name.- Parameters:
method- Name of the HTTP method.
-
HttpCustomMethod
A new custom method with the given method name to the given endpoint URL.- Parameters:
method- Name of the HTTP method.uri- Endpoint URI for the request.
-
HttpCustomMethod
A new custom method with the given method name to the given endpoint URL.- Parameters:
method- Name of the HTTP method.uri- Endpoint URI for the request.- Throws:
IllegalArgumentException- if the uri is invalid.
-
-
Method Details
-
getMethod
- Specified by:
getMethodin interfaceorg.apache.http.client.methods.HttpUriRequest- Specified by:
getMethodin classorg.apache.http.client.methods.HttpRequestBase
-