public abstract class HttpOperationImpl extends java.lang.Object implements HttpOperation
| Modifier and Type | Field and Description |
|---|---|
protected OperationCallback |
callback |
protected OperationException |
exception |
| Constructor and Description |
|---|
HttpOperationImpl(org.apache.http.HttpRequest r,
OperationCallback cb) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthHeader(java.lang.String authzn) |
void |
cancel() |
OperationCallback |
getCallback() |
protected java.lang.String |
getEntityString(org.apache.http.HttpResponse response) |
OperationException |
getException() |
org.apache.http.HttpRequest |
getRequest() |
abstract void |
handleResponse(org.apache.http.HttpResponse response) |
boolean |
hasErrored() |
boolean |
isCancelled() |
boolean |
isTimedOut() |
protected OperationStatus |
parseViewForStatus(java.lang.String json,
int errorcode) |
void |
setException(OperationException e) |
void |
timeOut() |
java.lang.String |
toString() |
protected final OperationCallback callback
protected OperationException exception
public HttpOperationImpl(org.apache.http.HttpRequest r,
OperationCallback cb)
public org.apache.http.HttpRequest getRequest()
getRequest in interface HttpOperationpublic 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 OperationException getException()
getException in interface HttpOperationpublic void setException(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 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.