public class HttpSubscribe extends BaseDavRequest
Note that "SUBSCRIBE" is a custom HTTP extension, not defined in a standards paper.
Constructor and Description |
---|
HttpSubscribe(java.lang.String uri,
SubscriptionInfo info,
java.lang.String subscriptionId) |
HttpSubscribe(java.net.URI uri,
SubscriptionInfo info,
java.lang.String subscriptionId) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMethod() |
java.lang.String |
getSubscriptionId(org.apache.http.HttpResponse response) |
boolean |
succeeded(org.apache.http.HttpResponse response)
Check the provided
HttpResponse for successful execution. |
checkSuccess, getResponseBodyAsDocument, getResponseBodyAsEventDiscovery, getResponseBodyAsLockDiscovery, getResponseBodyAsMultiStatus, getResponseBodyAsSubscriptionDiscovery, getResponseException
clone, expectContinue, getEntity, setEntity
getConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toString
abort, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTrigger
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public HttpSubscribe(java.net.URI uri, SubscriptionInfo info, java.lang.String subscriptionId) throws java.io.IOException
java.io.IOException
public HttpSubscribe(java.lang.String uri, SubscriptionInfo info, java.lang.String subscriptionId) throws java.io.IOException
java.io.IOException
public java.lang.String getSubscriptionId(org.apache.http.HttpResponse response)
public java.lang.String getMethod()
getMethod
in interface org.apache.http.client.methods.HttpUriRequest
getMethod
in class org.apache.http.client.methods.HttpRequestBase
public boolean succeeded(org.apache.http.HttpResponse response)
BaseDavRequest
HttpResponse
for successful execution. The default implementation treats all
2xx status codes (RFC 7231, Section 6.3).
Implementations can further restrict the accepted range of responses (or even check the response body).succeeded
in class BaseDavRequest
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"