| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
HttpMethodBaseorg.apache.webdav.lib.methods.HttpRequestBodyMethodBaseorg.apache.webdav.lib.methods.XMLResponseMethodBaseorg.apache.webdav.lib.methods.SubscribeMethodReferenceNested 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 String | |
static String | |
static String | |
static String | |
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 | |
| |
Method Summary | |
protected void |
|
String | |
int |
|
String |
|
long | |
String | |
String |
|
int |
|
long |
|
long | |
long | |
protected void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
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 | |
public static final String TYPE_DELETE
public static final String TYPE_MOVE
public static final String TYPE_UPDATE
public static final String TYPE_UPDATE_NEW_MEMBER
protected void addRequestHeaders(HttpState state,
HttpConnection conn)
throws IOException,
HttpExceptionpublic String getCallback()
public int getDepth()
Depth getter.
- Specified by:
- getDepth in interface DepthSupport
- Returns:
- int depth value
public String getName()
public long getNotificationDelay()
public String getNotificationType()
public String getResponsedContentLocation()
Returns the value of the content-location header of the response. This shall be used to the request uri for a POLL method querying this subscription.
public int getResponsedSubscriptionId()
Returns the subscription ID responsed from the server.
- Returns:
- -1 if no subscription id was in the response
public long getResponsedSubscriptionLifetime()
Returns the subscription lifetime responsed from the server.
- Returns:
- -1 if no subscription lifetime was given in the response
public long getSubsciptionLifetime()
public long getSubscriptionId()
protected void processResponseHeaders(HttpState state,
HttpConnection conn)public void setCallback(String callback)
Sets the URI that's to be notified if the subscribed event does occur.
public void setDepth(int depth)
Sets the depth.
- Specified by:
- setDepth in interface DepthSupport
public void setNotificationDelay(long delay)
Sets the notification delay in seconds.
public void setNotificationType(String notificationType)
Sets the notification type, i.e. determines the events that are subscribed.
- See Also:
TYPE_DELETE,TYPE_MOVE,TYPE_UPDATE,TYPE_UPDATE_NEW_MEMBER
public void setRequestHeader(String headerName,
String headerValue)Adds special checking of header values of the SUBSCRIBE method to the super class implementation.
public void setSubsciptionLifetime(long subsciptionLifetime)
Sets the duration of the subscription in seconds.
public void setSubscriptionId(int subscriptionId)
Sets the ID of a subscription to be refreshed.
- Parameters:
subscriptionId-