A B C D E F G H I M N O P Q R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(Request) - Method in class okhttp3.mock.Rule
- add(Matcher) - Method in class okhttp3.mock.matchers.OrMatcher
- addRule() - Method in class okhttp3.mock.MockInterceptor
-
Short hand for
MockInterceptor.addRule(Response.Builder builder) - addRule(Rule) - Method in class okhttp3.mock.MockInterceptor
-
Adds a new mock rule to this interceptor.
- addRule(Response.Builder) - Method in class okhttp3.mock.MockInterceptor
-
Adds a new mock rule to this interceptor.
- AndroidResources - Class in okhttp3.mock
-
A helper class to provide responses from Android's sources
- answer(RuleAnswer) - Method in class okhttp3.mock.Rule.Builder
- any() - Static method in class okhttp3.mock.matchers.MatcherHelper
- anyTimes() - Method in class okhttp3.mock.Rule.Builder
- asset(Context, String) - Static method in class okhttp3.mock.AndroidResources
-
Loads the content from the given asset
- asset(String) - Static method in class okhttp3.mock.RoboResources
-
Loads the content from the given asset
B
- behavior() - Method in class okhttp3.mock.MockInterceptor
- behavior(Behavior) - Method in class okhttp3.mock.MockInterceptor
- Behavior - Enum in okhttp3.mock
-
Defines the available behavior modes for a
MockInterceptor, regarding theRules configured on it. - body(String) - Method in class okhttp3.mock.Rule.Builder
- body(String, Charset) - Method in class okhttp3.mock.Rule.Builder
- BodyMatcher - Class in okhttp3.mock.matchers
- BodyMatcher(Pattern) - Constructor for class okhttp3.mock.matchers.BodyMatcher
- BodyMatcher(Pattern, Charset) - Constructor for class okhttp3.mock.matchers.BodyMatcher
- bodyMatches(Pattern) - Method in class okhttp3.mock.Rule.Builder
- bodyMatches(Pattern, Charset) - Method in class okhttp3.mock.Rule.Builder
- Builder() - Constructor for class okhttp3.mock.Rule.Builder
C
- ClasspathResources - Class in okhttp3.mock
-
A helper class to provide responses from classpath sources
D
- delay(long) - Method in class okhttp3.mock.Rule.Builder
- delete() - Method in class okhttp3.mock.Rule.Builder
- delete(String) - Method in class okhttp3.mock.Rule.Builder
- DELETE - Static variable in annotation type okhttp3.mock.HttpMethod
E
- exact(String) - Static method in class okhttp3.mock.matchers.MatcherHelper
F
- failReason(Request) - Method in interface okhttp3.mock.matchers.Matcher
- failReason(Request) - Method in class okhttp3.mock.matchers.MethodMatcher
- failReason(Request) - Method in class okhttp3.mock.matchers.NotMatcher
- failReason(Request) - Method in class okhttp3.mock.matchers.OrMatcher
- failReason(Request) - Method in class okhttp3.mock.matchers.PatternMatcher
G
- get() - Method in class okhttp3.mock.Rule.Builder
- get(String) - Method in class okhttp3.mock.Rule.Builder
- GET - Static variable in annotation type okhttp3.mock.HttpMethod
- getFailReason(Request) - Method in class okhttp3.mock.Rule
- getRules() - Method in class okhttp3.mock.MockInterceptor
- getText(Request) - Method in class okhttp3.mock.matchers.BodyMatcher
- getText(Request) - Method in class okhttp3.mock.matchers.HeaderMatcher
- getText(Request) - Method in class okhttp3.mock.matchers.PathMatcher
- getText(Request) - Method in class okhttp3.mock.matchers.PatternMatcher
- getText(Request) - Method in class okhttp3.mock.matchers.QueryParamMatcher
- getText(Request) - Method in class okhttp3.mock.matchers.URLMatcher
H
- hasHeader(String) - Method in class okhttp3.mock.Rule.Builder
- hasParam(String) - Method in class okhttp3.mock.Rule.Builder
- head() - Method in class okhttp3.mock.Rule.Builder
- head(String) - Method in class okhttp3.mock.Rule.Builder
- HEAD - Static variable in annotation type okhttp3.mock.HttpMethod
- header(String, String) - Method in class okhttp3.mock.Rule.Builder
- HeaderMatcher - Class in okhttp3.mock.matchers
- HeaderMatcher(String, Pattern) - Constructor for class okhttp3.mock.matchers.HeaderMatcher
- headerMatches(String, Pattern) - Method in class okhttp3.mock.Rule.Builder
- HTTP_200_OK - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_204_NO_CONTENT - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_302_FOUND - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_303_SEE_OTHER - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_304_NOT_MODIFIED - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_400_BAD_REQUEST - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_401_UNAUTHORIZED - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_403_FORBIDDEN - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_404_NOT_FOUND - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_405_METHOD_NOT_ALLOWED - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_409_CONFLICT - Static variable in annotation type okhttp3.mock.HttpCode
- HTTP_500_INTERNAL_SERVER_ERROR - Static variable in annotation type okhttp3.mock.HttpCode
- HttpCode - Annotation Type in okhttp3.mock
- HttpCodes - Interface in okhttp3.mock
-
Deprecated.replaced by
HttpCode, will be removed on next version - HttpMethod - Annotation Type in okhttp3.mock
- HttpMethods - Interface in okhttp3.mock
-
Deprecated.replaced by
HttpMethod, will be removed on next version
I
- intercept(Interceptor.Chain) - Method in class okhttp3.mock.MockInterceptor
- isConsumed() - Method in class okhttp3.mock.Rule
M
- Matcher - Interface in okhttp3.mock.matchers
- MatcherHelper - Class in okhttp3.mock.matchers
- matches(Matcher) - Method in class okhttp3.mock.Rule.Builder
- matches(Request) - Method in interface okhttp3.mock.matchers.Matcher
- matches(Request) - Method in class okhttp3.mock.matchers.MethodMatcher
- matches(Request) - Method in class okhttp3.mock.matchers.NotMatcher
- matches(Request) - Method in class okhttp3.mock.matchers.OrMatcher
- matches(Request) - Method in class okhttp3.mock.matchers.PatternMatcher
- MEDIATYPE_FORM_DATA - Static variable in interface okhttp3.mock.MediaTypes
- MEDIATYPE_FORM_URLENCODED - Static variable in interface okhttp3.mock.MediaTypes
- MEDIATYPE_HTML - Static variable in interface okhttp3.mock.MediaTypes
- MEDIATYPE_JSON - Static variable in interface okhttp3.mock.MediaTypes
- MEDIATYPE_RAW_DATA - Static variable in interface okhttp3.mock.MediaTypes
- MEDIATYPE_TEXT - Static variable in interface okhttp3.mock.MediaTypes
- MEDIATYPE_XML - Static variable in interface okhttp3.mock.MediaTypes
- MediaTypes - Interface in okhttp3.mock
- method(String) - Method in class okhttp3.mock.Rule.Builder
- MethodMatcher - Class in okhttp3.mock.matchers
- MethodMatcher(String) - Constructor for class okhttp3.mock.matchers.MethodMatcher
- MockInterceptor - Class in okhttp3.mock
-
An
InterceptorforOkHttpClient, which with match request and provide pre-configured mock responses. - MockInterceptor() - Constructor for class okhttp3.mock.MockInterceptor
-
Creates a MockInterceptor with a default
Behavior.SEQUENTIALbehavior - MockInterceptor(Behavior) - Constructor for class okhttp3.mock.MockInterceptor
N
- not() - Method in class okhttp3.mock.Rule.Builder
- NotMatcher - Class in okhttp3.mock.matchers
- NotMatcher(Matcher) - Constructor for class okhttp3.mock.matchers.NotMatcher
O
- okhttp3.mock - package okhttp3.mock
- okhttp3.mock.matchers - package okhttp3.mock.matchers
- options() - Method in class okhttp3.mock.Rule.Builder
- options(String) - Method in class okhttp3.mock.Rule.Builder
- OPTIONS - Static variable in annotation type okhttp3.mock.HttpMethod
- or() - Method in class okhttp3.mock.Rule.Builder
- OrMatcher - Class in okhttp3.mock.matchers
- OrMatcher(Matcher, Matcher) - Constructor for class okhttp3.mock.matchers.OrMatcher
P
- param(String, String) - Method in class okhttp3.mock.Rule.Builder
- paramMatches(String, Pattern) - Method in class okhttp3.mock.Rule.Builder
- patch() - Method in class okhttp3.mock.Rule.Builder
- patch(String) - Method in class okhttp3.mock.Rule.Builder
- PATCH - Static variable in annotation type okhttp3.mock.HttpMethod
- path(String) - Method in class okhttp3.mock.Rule.Builder
- pathEnds(String) - Method in class okhttp3.mock.Rule.Builder
- PathMatcher - Class in okhttp3.mock.matchers
- PathMatcher(Pattern) - Constructor for class okhttp3.mock.matchers.PathMatcher
- pathMatches(Pattern) - Method in class okhttp3.mock.Rule.Builder
- pathStarts(String) - Method in class okhttp3.mock.Rule.Builder
- pattern - Variable in class okhttp3.mock.matchers.PatternMatcher
- PatternMatcher - Class in okhttp3.mock.matchers
- PatternMatcher(Pattern) - Constructor for class okhttp3.mock.matchers.PatternMatcher
- post() - Method in class okhttp3.mock.Rule.Builder
- post(String) - Method in class okhttp3.mock.Rule.Builder
- POST - Static variable in annotation type okhttp3.mock.HttpMethod
- prefix(String) - Static method in class okhttp3.mock.matchers.MatcherHelper
- put() - Method in class okhttp3.mock.Rule.Builder
- put(String) - Method in class okhttp3.mock.Rule.Builder
- PUT - Static variable in annotation type okhttp3.mock.HttpMethod
Q
- QueryParamMatcher - Class in okhttp3.mock.matchers
- QueryParamMatcher(String, Pattern) - Constructor for class okhttp3.mock.matchers.QueryParamMatcher
R
- rawRes(int) - Static method in class okhttp3.mock.RoboResources
-
Loads the content from the given raw resource
- rawRes(Context, int) - Static method in class okhttp3.mock.AndroidResources
-
Loads the content from the given raw resource
- reason(CharSequence, CharSequence) - Static method in class okhttp3.mock.matchers.MatcherHelper
- RELAYED - okhttp3.mock.Behavior
-
The requests must match the configured
Rules at any order, if no rule applies a regular request will be performed instead. - reset() - Method in class okhttp3.mock.MockInterceptor
- resource(ClassLoader, String) - Static method in class okhttp3.mock.ClasspathResources
-
Loads the content from the given classpath resource
- resource(String) - Static method in class okhttp3.mock.ClasspathResources
-
Loads the content from the given classpath resource
- respond(byte[]) - Method in class okhttp3.mock.Rule.Builder
- respond(byte[], MediaType) - Method in class okhttp3.mock.Rule.Builder
- respond(int) - Method in class okhttp3.mock.Rule.Builder
- respond(int, ResponseBody) - Method in class okhttp3.mock.Rule.Builder
- respond(long, InputStream) - Method in class okhttp3.mock.Rule.Builder
- respond(long, InputStream, MediaType) - Method in class okhttp3.mock.Rule.Builder
- respond(InputStream) - Method in class okhttp3.mock.Rule.Builder
- respond(InputStream, MediaType) - Method in class okhttp3.mock.Rule.Builder
- respond(String) - Method in class okhttp3.mock.Rule.Builder
- respond(String, MediaType) - Method in class okhttp3.mock.Rule.Builder
- respond(Request) - Method in interface okhttp3.mock.RuleAnswer
- respond(ResponseBody) - Method in class okhttp3.mock.Rule.Builder
- RoboResources - Class in okhttp3.mock
-
A helper class to provide responses from Roboelectric's sources
- Rule - Class in okhttp3.mock
- Rule.Builder - Class in okhttp3.mock
- RuleAnswer - Interface in okhttp3.mock
S
- SEQUENTIAL - okhttp3.mock.Behavior
-
The requests must match the same order the
Rules were configured, anAssertionErrorwill be thrown otherwise. - suffix(String) - Static method in class okhttp3.mock.matchers.MatcherHelper
T
- times(int) - Method in class okhttp3.mock.Rule.Builder
- toString() - Method in class okhttp3.mock.matchers.BodyMatcher
- toString() - Method in class okhttp3.mock.matchers.HeaderMatcher
- toString() - Method in class okhttp3.mock.matchers.MethodMatcher
- toString() - Method in class okhttp3.mock.matchers.NotMatcher
- toString() - Method in class okhttp3.mock.matchers.OrMatcher
- toString() - Method in class okhttp3.mock.matchers.PathMatcher
- toString() - Method in class okhttp3.mock.matchers.QueryParamMatcher
- toString() - Method in class okhttp3.mock.matchers.URLMatcher
- toString() - Method in class okhttp3.mock.Rule
U
- UNORDERED - okhttp3.mock.Behavior
-
The requests must match the configured
Rules at any order, if no rule applies anAssertionErrorwill be thrown. - url(String) - Method in class okhttp3.mock.Rule.Builder
- urlEnds(String) - Method in class okhttp3.mock.Rule.Builder
- URLMatcher - Class in okhttp3.mock.matchers
- URLMatcher(Pattern) - Constructor for class okhttp3.mock.matchers.URLMatcher
- urlMatches(Pattern) - Method in class okhttp3.mock.Rule.Builder
- urlStarts(String) - Method in class okhttp3.mock.Rule.Builder
V
- valueOf(String) - Static method in enum okhttp3.mock.Behavior
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum okhttp3.mock.Behavior
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages