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.HttpEntityEnclosingRequestBaseA custom HTTP method with the given method name.- Since:
- 7.0.1
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description HttpCustomMethod(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMethod()-
Methods inherited from class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
clone, expectContinue, getEntity, setEntity
-
Methods inherited from class org.apache.http.client.methods.HttpRequestBase
getConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toString
-
Methods inherited from class org.apache.http.client.methods.AbstractExecutionAwareRequest
abort, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTrigger
-
Methods inherited from class org.apache.http.message.AbstractHttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
HttpCustomMethod
public HttpCustomMethod(String method)
A new custom method with the given method name.- Parameters:
method- Name of the HTTP method.
-
HttpCustomMethod
public HttpCustomMethod(String method, URI uri)
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
public HttpCustomMethod(String method, String uri)
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 Detail
-
getMethod
public String getMethod()
- Specified by:
getMethodin interfaceorg.apache.http.client.methods.HttpUriRequest- Specified by:
getMethodin classorg.apache.http.client.methods.HttpRequestBase
-
-