Class UnsubscribeMethod

  • All Implemented Interfaces:
    org.apache.commons.httpclient.HttpMethod

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

      • UnsubscribeMethod

        public UnsubscribeMethod()
      • UnsubscribeMethod

        public UnsubscribeMethod​(java.lang.String path)
    • Method Detail

      • addSubscriptionId

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

        public java.lang.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 java.io.IOException,
                                         org.apache.commons.httpclient.HttpException
        Overrides:
        addRequestHeaders in class org.apache.commons.httpclient.HttpMethodBase
        Throws:
        java.io.IOException
        org.apache.commons.httpclient.HttpException
      • setRequestHeader

        public void setRequestHeader​(java.lang.String headerName,
                                     java.lang.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