|
|||||||||
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.SubscribeMethod
public class SubscribeMethod
Implements the SUBSCRIBE 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 | |
---|---|
static java.lang.String |
TYPE_DELETE
|
static java.lang.String |
TYPE_MOVE
|
static java.lang.String |
TYPE_UPDATE
|
static java.lang.String |
TYPE_UPDATE_NEW_MEMBER
|
Fields inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase |
---|
builder, decodeResponseHrefs, responseURLs |
Fields inherited from interface org.apache.webdav.lib.methods.DepthSupport |
---|
DEPTH_0, DEPTH_1, DEPTH_INFINITY |
Constructor Summary | |
---|---|
SubscribeMethod()
|
|
SubscribeMethod(java.lang.String path)
|
Method Summary | |
---|---|
protected void |
addRequestHeaders(HttpState state,
HttpConnection conn)
|
java.lang.String |
getCallback()
|
int |
getDepth()
Depth getter. |
java.lang.String |
getName()
|
long |
getNotificationDelay()
|
java.lang.String |
getNotificationType()
|
java.lang.String |
getResponsedContentLocation()
Returns the value of the content-location header of the response. |
int |
getResponsedSubscriptionId()
Returns the subscription ID responsed from the server. |
long |
getResponsedSubscriptionLifetime()
Returns the subscription lifetime responsed from the server. |
long |
getSubsciptionLifetime()
|
long |
getSubscriptionId()
|
protected void |
processResponseHeaders(HttpState state,
HttpConnection conn)
|
void |
recycle()
Reset the State of the class to its initial state, so that it can be used again. |
void |
setCallback(java.lang.String callback)
Sets the URI that's to be notified if the subscribed event does occur. |
void |
setDepth(int depth)
Sets the depth. |
void |
setNotificationDelay(long delay)
Sets the notification delay in seconds. |
void |
setNotificationType(java.lang.String notificationType)
Sets the notification type, i.e. |
void |
setRequestHeader(java.lang.String headerName,
java.lang.String headerValue)
Adds special checking of header values of the SUBSCRIBE method to the super class implementation. |
void |
setSubsciptionLifetime(long subsciptionLifetime)
Sets the duration of the subscription in seconds. |
void |
setSubscriptionId(int subscriptionId)
Sets the ID of a subscription to be refreshed. |
Methods inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase |
---|
convertElementToProperty, generateRequestBody, getDebug, getRequestContentLength, getResponseDocument, getResponseHashtable, getResponses, getResponseURLs, parseResponse, 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 |
Field Detail |
---|
public static final java.lang.String TYPE_UPDATE
public static final java.lang.String TYPE_UPDATE_NEW_MEMBER
public static final java.lang.String TYPE_DELETE
public static final java.lang.String TYPE_MOVE
Constructor Detail |
---|
public SubscribeMethod()
public SubscribeMethod(java.lang.String path)
Method Detail |
---|
public java.lang.String getCallback()
public void setCallback(java.lang.String callback)
public java.lang.String getNotificationType()
public void setNotificationType(java.lang.String notificationType)
TYPE_DELETE
,
TYPE_MOVE
,
TYPE_UPDATE
,
TYPE_UPDATE_NEW_MEMBER
public long getSubsciptionLifetime()
public void setSubsciptionLifetime(long subsciptionLifetime)
public long getSubscriptionId()
public void setSubscriptionId(int subscriptionId)
subscriptionId
- public void setNotificationDelay(long delay)
public long getNotificationDelay()
public int getDepth()
DepthSupport
getDepth
in interface DepthSupport
public void setDepth(int depth)
setDepth
in interface DepthSupport
depth
- New depth valuepublic int getResponsedSubscriptionId()
public long getResponsedSubscriptionLifetime()
public java.lang.String getResponsedContentLocation()
public 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
protected void processResponseHeaders(HttpState state, HttpConnection conn)
processResponseHeaders
in class HttpMethodBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |