org.apache.webdav.lib.methods
Class PollMethod
Implements the POLL WebDAV method.
protected void | addRequestHeaders(HttpState state, HttpConnection conn)
|
void | addSubscriptionId(int id)- Adds an ID for a subscription that is to be polled.
|
String | getName()
|
Collection | getSubscriptionsWithEvents()- Returns a list of number objects containing the subscription IDs for
subscriptions for which events are reported.
|
Collection | getSubscriptionsWithoutEvents()- Returns a list of number objects containing the subscription IDs for
subscriptions for which NO events are reported.
|
void | parseResponse(InputStream input, HttpState state, HttpConnection conn)
|
void | recycle()
|
void | setRequestHeader(String headerName, String headerValue)- Adds special checking of header values of the POLL method to
the super class implementation.
|
convertElementToProperty, generateRequestBody, getDebug, getRequestContentLength, getResponseDocument, getResponseHashtable, getResponseURLs, getResponses, parseResponse, parseXMLResponse, readResponseBody, recycle, setDebug, setDecodeResponseHrefs, setDocument, setResponseHashtable, writeRequestBody |
PollMethod
public PollMethod()
PollMethod
public PollMethod(String path)
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 polled. All added subscription
IDs should have the got same Content-Location uri from the SUBSCRIBE method.
getName
public String getName()
getSubscriptionsWithEvents
public Collection getSubscriptionsWithEvents()
Returns a list of number objects containing the subscription IDs for
subscriptions for which events are reported.
getSubscriptionsWithoutEvents
public Collection getSubscriptionsWithoutEvents()
Returns a list of number objects containing the subscription IDs for
subscriptions for which NO events are reported.
parseResponse
public void parseResponse(InputStream input,
HttpState state,
HttpConnection conn)
throws IOException,
HttpException- parseResponse in interface XMLResponseMethodBase
setRequestHeader
public void setRequestHeader(String headerName,
String headerValue) Adds special checking of header values of the POLL method to
the super class implementation.