com.couchbase.client.protocol.views
Class ViewOperationImpl

java.lang.Object
  extended by com.couchbase.client.protocol.views.HttpOperationImpl
      extended by com.couchbase.client.protocol.views.ViewOperationImpl
All Implemented Interfaces:
HttpOperation, ViewOperation
Direct Known Subclasses:
DocsOperationImpl, NoDocsOperationImpl, ReducedOperationImpl

public abstract class ViewOperationImpl
extends HttpOperationImpl
implements ViewOperation

A ViewOperationImpl.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.couchbase.client.protocol.views.ViewOperation
ViewOperation.ViewCallback
 
Field Summary
protected static java.util.logging.Logger LOGGER
           
 
Fields inherited from class com.couchbase.client.protocol.views.HttpOperationImpl
callback, exception
 
Constructor Summary
ViewOperationImpl(org.apache.http.HttpRequest r, AbstractView view, net.spy.memcached.ops.OperationCallback cb)
           
 
Method Summary
 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)
           
 
Methods inherited from class com.couchbase.client.protocol.views.HttpOperationImpl
addAuthHeader, cancel, getCallback, getEntityString, getException, getRequest, hasErrored, isCancelled, isTimedOut, parseViewForStatus, setException, timeOut, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOGGER

protected static final java.util.logging.Logger LOGGER
Constructor Detail

ViewOperationImpl

public ViewOperationImpl(org.apache.http.HttpRequest r,
                         AbstractView view,
                         net.spy.memcached.ops.OperationCallback cb)
Method Detail

getView

public AbstractView getView()

handleResponse

public void handleResponse(org.apache.http.HttpResponse response)
Specified by:
handleResponse in interface HttpOperation
Specified by:
handleResponse in class HttpOperationImpl

parseError

protected abstract void parseError(java.lang.String json,
                                   int errorcode)
                            throws java.text.ParseException
Throws:
java.text.ParseException

parseResult

protected abstract ViewResponse parseResult(java.lang.String json)
                                     throws java.text.ParseException
Throws:
java.text.ParseException


Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.