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 HttpOperation
public net.spy.memcached.ops.OperationCallback getCallback()
getCallback
in interface HttpOperation
public boolean isCancelled()
isCancelled
in interface HttpOperation
public boolean hasErrored()
hasErrored
in interface HttpOperation
public boolean isTimedOut()
isTimedOut
in interface HttpOperation
public void cancel()
cancel
in interface HttpOperation
public void timeOut()
timeOut
in interface HttpOperation
public net.spy.memcached.ops.OperationException getException()
getException
in interface HttpOperation
public void setException(net.spy.memcached.ops.OperationException e)
public void addAuthHeader(java.lang.String authzn)
addAuthHeader
in interface HttpOperation
public abstract void handleResponse(org.apache.http.HttpResponse response)
handleResponse
in interface HttpOperation
protected 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.ParseException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.