Back to project page couchbase-lite-android.
The source code is released under:
Apache License
If you think the Android project couchbase-lite-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.couchbase.lite.mockserver; /*from w ww . ja va 2 s . c o m*/ import com.squareup.okhttp.mockwebserver.MockResponse; import com.squareup.okhttp.mockwebserver.RecordedRequest; /** * A smarter MockResponse to allow for dynamic changes at the time * that a request is being processed. Eg, it updates its response * body based on the request. */ public interface SmartMockResponse { public MockResponse generateMockResponse(RecordedRequest request); public boolean isSticky(); /** * @return the delay, in milliseconds, before the MockDispatcher should * return this response. */ public long delayMs(); }