Class 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

      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
      String getMethod()  
      • 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 interface org.apache.http.HttpMessage

        addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
      • Methods inherited from interface org.apache.http.HttpRequest

        getRequestLine
      • Methods inherited from interface org.apache.http.client.methods.HttpUriRequest

        abort, isAborted
    • 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:
        getMethod in interface org.apache.http.client.methods.HttpUriRequest
        Specified by:
        getMethod in class org.apache.http.client.methods.HttpRequestBase