Class UnsubscribeMethod

java.lang.Object
org.apache.commons.httpclient.HttpMethodBase
All Implemented Interfaces:
org.apache.commons.httpclient.HttpMethod

public class UnsubscribeMethod extends XMLResponseMethodBase
Implements the UNSUBSCRIBE method.
See Also:
  • Constructor Details

    • UnsubscribeMethod

      public UnsubscribeMethod()
    • UnsubscribeMethod

      public UnsubscribeMethod(String path)
  • Method Details

    • addSubscriptionId

      public void addSubscriptionId(int id)
      Adds an ID for a subscription that is to be withdrawn.
    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.commons.httpclient.HttpMethod
      Specified by:
      getName in class org.apache.commons.httpclient.HttpMethodBase
    • recycle

      public void recycle()
      Description copied from class: XMLResponseMethodBase
      Reset the State of the class to its initial state, so that it can be used again.
      Specified by:
      recycle in interface org.apache.commons.httpclient.HttpMethod
      Overrides:
      recycle in class XMLResponseMethodBase
    • addRequestHeaders

      protected void addRequestHeaders(org.apache.commons.httpclient.HttpState state, org.apache.commons.httpclient.HttpConnection conn) throws IOException, org.apache.commons.httpclient.HttpException
      Overrides:
      addRequestHeaders in class org.apache.commons.httpclient.HttpMethodBase
      Throws:
      IOException
      org.apache.commons.httpclient.HttpException
    • setRequestHeader

      public void setRequestHeader(String headerName, String headerValue)
      Adds special checking of header values of the UNSUBSCRIBE method to the super class implementation.
      Specified by:
      setRequestHeader in interface org.apache.commons.httpclient.HttpMethod
      Overrides:
      setRequestHeader in class org.apache.commons.httpclient.HttpMethodBase