|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.httpclient.HttpMethodBase
org.apache.webdav.lib.methods.HttpRequestBodyMethodBase
org.apache.webdav.lib.methods.XMLResponseMethodBase
org.apache.webdav.lib.methods.PollMethod
public class PollMethod
Implements the POLL WebDAV method.
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 | |
---|---|
PollMethod()
|
|
PollMethod(java.lang.String path)
|
Method Summary | |
---|---|
protected void |
addRequestHeaders(HttpState state,
HttpConnection conn)
|
void |
addSubscriptionId(int id)
Adds an ID for a subscription that is to be polled. |
java.lang.String |
getName()
|
java.util.Collection |
getSubscriptionsWithEvents()
Returns a list of number objects containing the subscription IDs for subscriptions for which events are reported. |
java.util.Collection |
getSubscriptionsWithoutEvents()
Returns a list of number objects containing the subscription IDs for subscriptions for which NO events are reported. |
void |
parseResponse(java.io.InputStream input,
HttpState state,
HttpConnection conn)
Parse response. |
void |
recycle()
Reset the State of the class to its initial state, so that it can be used again. |
void |
setRequestHeader(java.lang.String headerName,
java.lang.String headerValue)
Adds special checking of header values of the POLL method to the super class implementation. |
Methods inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase |
---|
convertElementToProperty, generateRequestBody, getDebug, getRequestContentLength, getResponseDocument, getResponseHashtable, getResponses, getResponseURLs, parseXMLResponse, readResponseBody, setDebug, setDecodeResponseHrefs, setDocument, setResponseHashtable, writeRequestBody |
Methods inherited from class org.apache.webdav.lib.methods.HttpRequestBodyMethodBase |
---|
isRequestContentAlreadySet, readContinueCode, setRequestBody, setRequestBody, setRequestBody, setRequestBody, setRequestBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PollMethod()
public PollMethod(java.lang.String path)
Method Detail |
---|
public void addSubscriptionId(int id)
public java.util.Collection getSubscriptionsWithEvents()
Integer
spublic java.util.Collection getSubscriptionsWithoutEvents()
Integer
spublic java.lang.String getName()
getName
in interface HttpMethod
getName
in class HttpMethodBase
public void recycle()
XMLResponseMethodBase
recycle
in interface HttpMethod
recycle
in class XMLResponseMethodBase
protected void addRequestHeaders(HttpState state, HttpConnection conn) throws java.io.IOException, HttpException
addRequestHeaders
in class HttpMethodBase
java.io.IOException
HttpException
public void setRequestHeader(java.lang.String headerName, java.lang.String headerValue)
setRequestHeader
in interface HttpMethod
setRequestHeader
in class HttpMethodBase
public void parseResponse(java.io.InputStream input, HttpState state, HttpConnection conn) throws java.io.IOException, HttpException
XMLResponseMethodBase
parseResponse
in class XMLResponseMethodBase
input
- Input stream
java.io.IOException
HttpException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |