public abstract class HttpOperationImpl extends java.lang.Object implements HttpOperation
| Modifier and Type | Field and Description |
|---|---|
protected net.spy.memcached.ops.OperationCallback |
callback |
protected net.spy.memcached.ops.OperationException |
exception |
| Constructor and Description |
|---|
HttpOperationImpl(org.apache.http.HttpRequest r,
net.spy.memcached.ops.OperationCallback cb) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthHeader(java.lang.String authzn) |
void |
cancel() |
net.spy.memcached.ops.OperationCallback |
getCallback() |
protected java.lang.String |
getEntityString(org.apache.http.HttpResponse response) |
net.spy.memcached.ops.OperationException |
getException() |
org.apache.http.HttpRequest |
getRequest() |
abstract void |
handleResponse(org.apache.http.HttpResponse response) |
boolean |
hasErrored() |
boolean |
isCancelled() |
boolean |
isTimedOut() |
protected net.spy.memcached.ops.OperationStatus |
parseViewForStatus(java.lang.String json,
int errorcode) |
void |
setException(net.spy.memcached.ops.OperationException e) |
void |
timeOut() |
java.lang.String |
toString() |
protected final net.spy.memcached.ops.OperationCallback callback
protected net.spy.memcached.ops.OperationException exception
public HttpOperationImpl(org.apache.http.HttpRequest r,
net.spy.memcached.ops.OperationCallback cb)
public org.apache.http.HttpRequest getRequest()
getRequest in interface HttpOperationpublic net.spy.memcached.ops.OperationCallback getCallback()
getCallback in interface HttpOperationpublic boolean isCancelled()
isCancelled in interface HttpOperationpublic boolean hasErrored()
hasErrored in interface HttpOperationpublic boolean isTimedOut()
isTimedOut in interface HttpOperationpublic void cancel()
cancel in interface HttpOperationpublic void timeOut()
timeOut in interface HttpOperationpublic net.spy.memcached.ops.OperationException getException()
getException in interface HttpOperationpublic void setException(net.spy.memcached.ops.OperationException e)
public void addAuthHeader(java.lang.String authzn)
addAuthHeader in interface HttpOperationpublic abstract void handleResponse(org.apache.http.HttpResponse response)
handleResponse in interface HttpOperationprotected java.lang.String getEntityString(org.apache.http.HttpResponse response)
protected net.spy.memcached.ops.OperationStatus parseViewForStatus(java.lang.String json,
int errorcode)
throws java.text.ParseException
java.text.ParseExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.