public abstract class ViewOperationImpl extends HttpOperationImpl implements ViewOperation
ViewOperation.ViewCallback
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
callback, exception
Constructor and Description |
---|
ViewOperationImpl(org.apache.http.HttpRequest r,
AbstractView view,
OperationCallback cb) |
Modifier and Type | Method and Description |
---|---|
AbstractView |
getView() |
void |
handleResponse(org.apache.http.HttpResponse response) |
protected abstract void |
parseError(java.lang.String json,
int errorcode) |
protected abstract ViewResponse |
parseResult(java.lang.String json) |
addAuthHeader, cancel, getCallback, getEntityString, getException, getRequest, hasErrored, isCancelled, isTimedOut, parseViewForStatus, setException, timeOut, toString
protected static final Logger LOGGER
public ViewOperationImpl(org.apache.http.HttpRequest r, AbstractView view, OperationCallback cb)
public AbstractView getView()
public void handleResponse(org.apache.http.HttpResponse response)
handleResponse
in interface HttpOperation
handleResponse
in class HttpOperationImpl
protected abstract void parseError(java.lang.String json, int errorcode) throws java.text.ParseException
java.text.ParseException
protected abstract ViewResponse parseResult(java.lang.String json) throws java.text.ParseException
java.text.ParseException
Copyright © 2006-2009 Dustin Sallings, 2009-2014 Couchbase, Inc.