|
||||||||||
| 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.commons.httpclient.methods.ExpectContinueMethod
org.apache.commons.httpclient.methods.EntityEnclosingMethod
org.apache.jackrabbit.webdav.client.methods.DavMethodBase
org.apache.jackrabbit.webdav.client.methods.SubscribeMethod
public class SubscribeMethod
SubscribeMethod...
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.httpclient.methods.EntityEnclosingMethod |
|---|
CONTENT_LENGTH_AUTO, CONTENT_LENGTH_CHUNKED |
| Fields inherited from class org.apache.commons.httpclient.HttpMethodBase |
|---|
effectiveVersion, statusLine |
| Constructor Summary | |
|---|---|
SubscribeMethod(String uri,
SubscriptionInfo subscriptionInfo)
Create a new SubscribeMethod used to register to the
observation events specified within the given SubscriptionInfo. |
|
SubscribeMethod(String uri,
SubscriptionInfo subscriptionInfo,
String subscriptionId)
Create a new SubscribeMethod used to register to the
observation events specified within the given SubscriptionInfo. |
|
| Method Summary | |
|---|---|
String |
getName()
Reset method to 'abstract' in order to force subclasses to change the name (inherited value is GetMethod.getName()). |
SubscriptionDiscovery |
getResponseAsSubscriptionDiscovery()
|
String |
getSubscriptionId()
|
protected boolean |
isSuccess(int statusCode)
|
protected void |
processResponseBody(org.apache.commons.httpclient.HttpState httpState,
org.apache.commons.httpclient.HttpConnection httpConnection)
Retrieves the DAV:subscriptiondiscovery property present in the response body and builds 'Subscription' objects from the corresponding DAV:subscription child elements inside the discovery. |
| Methods inherited from class org.apache.jackrabbit.webdav.client.methods.DavMethodBase |
|---|
addRequestHeader, checkSuccess, getResponseBodyAsDocument, getResponseBodyAsMultiStatus, getResponseException, getSuccess, processMultiStatusBody, processStatusLine, setRequestBody, setRequestBody, setRequestHeader, setSuccess, succeeded |
| Methods inherited from class org.apache.commons.httpclient.methods.EntityEnclosingMethod |
|---|
addContentLengthRequestHeader, addRequestHeaders, clearRequestBody, generateRequestBody, generateRequestEntity, getFollowRedirects, getRequestCharSet, getRequestContentLength, getRequestEntity, hasRequestContent, recycle, setContentChunked, setFollowRedirects, setRequestBody, setRequestBody, setRequestContentLength, setRequestContentLength, setRequestEntity, writeRequestBody |
| Methods inherited from class org.apache.commons.httpclient.methods.ExpectContinueMethod |
|---|
getUseExpectHeader, setUseExpectHeader |
| Methods inherited from class org.apache.commons.httpclient.HttpMethodBase |
|---|
abort, addCookieRequestHeader, addHostRequestHeader, addProxyConnectionHeader, addRequestHeader, addRequestHeader, addResponseFooter, addUserAgentRequestHeader, checkNotUsed, checkUsed, execute, generateRequestLine, getAuthenticationRealm, getContentCharSet, getDoAuthentication, getEffectiveVersion, getHostAuthState, getHostConfiguration, getMethodRetryHandler, getParams, getPath, getProxyAuthenticationRealm, getProxyAuthState, getQueryString, getRecoverableExceptionCount, getRequestHeader, getRequestHeaderGroup, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaderGroup, getResponseHeaders, getResponseHeaders, getResponseStream, getResponseTrailerHeaderGroup, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isAborted, isConnectionCloseForced, isHttp11, isRequestSent, isStrictMode, processCookieHeaders, processResponseHeaders, readResponse, readResponseBody, readResponseHeaders, readStatusLine, releaseConnection, removeRequestHeader, removeRequestHeader, responseBodyConsumed, setConnectionCloseForced, setDoAuthentication, setHostConfiguration, setHttp11, setMethodRetryHandler, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setResponseStream, setStrictMode, setURI, shouldCloseConnection, validate, writeRequest, writeRequestHeaders, writeRequestLine |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.httpclient.HttpMethod |
|---|
abort, addRequestHeader, addRequestHeader, addResponseFooter, execute, getDoAuthentication, getFollowRedirects, getHostAuthState, getHostConfiguration, getParams, getPath, getProxyAuthState, getQueryString, getRequestHeader, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaders, getResponseHeaders, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isRequestSent, isStrictMode, recycle, releaseConnection, removeRequestHeader, removeRequestHeader, setDoAuthentication, setFollowRedirects, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setStrictMode, setURI, validate |
| Constructor Detail |
|---|
public SubscribeMethod(String uri,
SubscriptionInfo subscriptionInfo)
throws IOException
SubscribeMethod used to register to the
observation events specified within the given SubscriptionInfo.
See SubscribeMethod(String, SubscriptionInfo, String) for a
constructor that allows to redefined an existing subscription.
uri - subscriptionInfo -
IOException
public SubscribeMethod(String uri,
SubscriptionInfo subscriptionInfo,
String subscriptionId)
throws IOException
SubscribeMethod used to register to the
observation events specified within the given SubscriptionInfo.
Note that in contrast to SubscribeMethod(String, SubscriptionInfo)
this constructor optionally takes a subscription id identifying a
subscription made before. In this case the subscription will be modified
according to the definitions present in the SubscriptionInfo.
If the id is null this constructor is identical to
SubscribeMethod(String, SubscriptionInfo).
uri - subscriptionInfo -
IOException| Method Detail |
|---|
public SubscriptionDiscovery getResponseAsSubscriptionDiscovery()
throws IOException,
DavException
IOException
DavExceptionpublic String getSubscriptionId()
public String getName()
DavMethodBaseGetMethod.getName()).
getName in interface org.apache.commons.httpclient.HttpMethodgetName in class DavMethodBaseHttpMethod.getName()protected boolean isSuccess(int statusCode)
isSuccess in class DavMethodBase
protected void processResponseBody(org.apache.commons.httpclient.HttpState httpState,
org.apache.commons.httpclient.HttpConnection httpConnection)
processResponseBody in class DavMethodBasehttpState - httpConnection - HttpMethodBase.processResponseBody(HttpState, HttpConnection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||