org.apache.webdav.lib.methods

Class UnsubscribeMethod


public class UnsubscribeMethod
extends XMLResponseMethodBase

Implements the UNSUBSCRIBE method.
See Also:
Reference

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase

XMLResponseMethodBase.OptionsResponse, XMLResponseMethodBase.Response, XMLResponseMethodBase.ResponseWithinMultistatus, XMLResponseMethodBase.SingleResponse

Field Summary

Fields inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase

builder, decodeResponseHrefs, responseURLs

Constructor Summary

UnsubscribeMethod()
Method constructor.
UnsubscribeMethod(String path)
Method constructor.

Method Summary

protected void
addRequestHeaders(HttpState state, HttpConnection conn)
void
addSubscriptionId(int id)
Adds an ID for a subscription that is to be withdrawn.
String
getName()
void
recycle()
Reset the State of the class to its initial state, so that it can be used again.
void
setRequestHeader(String headerName, String headerValue)
Adds special checking of header values of the UNSUBSCRIBE method to the super class implementation.

Methods inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase

convertElementToProperty, generateRequestBody, getDebug, getRequestContentLength, getResponseDocument, getResponseHashtable, getResponseURLs, getResponses, parseResponse, parseXMLResponse, readResponseBody, recycle, setDebug, setDecodeResponseHrefs, setDocument, setResponseHashtable, writeRequestBody

Methods inherited from class org.apache.webdav.lib.methods.HttpRequestBodyMethodBase

getRequestContentLength, isRequestContentAlreadySet, readContinueCode, recycle, setRequestBody, setRequestBody, setRequestBody, setRequestBody, setRequestBody, writeRequestBody

Constructor Details

UnsubscribeMethod

public UnsubscribeMethod()
Method constructor.

UnsubscribeMethod

public UnsubscribeMethod(String path)
Method constructor.
Parameters:

Method Details

addRequestHeaders

protected void addRequestHeaders(HttpState state,
                                 HttpConnection conn)
            throws IOException,
                   HttpException

addSubscriptionId

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

getName

public String getName()

recycle

public void recycle()
Reset the State of the class to its initial state, so that it can be used again.
Overrides:
recycle in interface XMLResponseMethodBase

setRequestHeader

public void setRequestHeader(String headerName,
                             String headerValue)
Adds special checking of header values of the UNSUBSCRIBE method to the super class implementation.