Index

A B C D E F G H I M N O P Q R S T U V 
All Classes|All Packages

A

accept(Request) - Method in class com.niklasarndt.okhttpmock.Rule
 
add(Matcher) - Method in class com.niklasarndt.okhttpmock.matchers.OrMatcher
 
addRule() - Method in class com.niklasarndt.okhttpmock.MockInterceptor
addRule(Rule) - Method in class com.niklasarndt.okhttpmock.MockInterceptor
Adds a new mock rule to this interceptor.
addRule(Response.Builder) - Method in class com.niklasarndt.okhttpmock.MockInterceptor
Adds a new mock rule to this interceptor.
answer(RuleAnswer) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
any() - Static method in class com.niklasarndt.okhttpmock.matchers.MatcherHelper
 
anyTimes() - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 

B

behavior() - Method in class com.niklasarndt.okhttpmock.MockInterceptor
 
behavior(MockInterceptor.Behavior) - Method in class com.niklasarndt.okhttpmock.MockInterceptor
 
Builder() - Constructor for class com.niklasarndt.okhttpmock.Rule.Builder
 

C

ClasspathResources - Class in com.niklasarndt.okhttpmock
A helper class to provide responses from classpath sources
com.niklasarndt.okhttpmock - package com.niklasarndt.okhttpmock
 
com.niklasarndt.okhttpmock.matchers - package com.niklasarndt.okhttpmock.matchers
 

D

delay(long) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
delete() - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
delete(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
DELETE - Static variable in annotation type com.niklasarndt.okhttpmock.HttpMethod
 

E

exact(String) - Static method in class com.niklasarndt.okhttpmock.matchers.MatcherHelper
 

F

failReason(Request) - Method in interface com.niklasarndt.okhttpmock.matchers.Matcher
 
failReason(Request) - Method in class com.niklasarndt.okhttpmock.matchers.MethodMatcher
 
failReason(Request) - Method in class com.niklasarndt.okhttpmock.matchers.NotMatcher
 
failReason(Request) - Method in class com.niklasarndt.okhttpmock.matchers.OrMatcher
 
failReason(Request) - Method in class com.niklasarndt.okhttpmock.matchers.PatternMatcher
 

G

get() - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
get(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
GET - Static variable in annotation type com.niklasarndt.okhttpmock.HttpMethod
 
getFailReason(Request) - Method in class com.niklasarndt.okhttpmock.Rule
 
getRules() - Method in class com.niklasarndt.okhttpmock.MockInterceptor
 
getText(Request) - Method in class com.niklasarndt.okhttpmock.matchers.HeaderMatcher
 
getText(Request) - Method in class com.niklasarndt.okhttpmock.matchers.PathMatcher
 
getText(Request) - Method in class com.niklasarndt.okhttpmock.matchers.PatternMatcher
 
getText(Request) - Method in class com.niklasarndt.okhttpmock.matchers.QueryParamMatcher
 
getText(Request) - Method in class com.niklasarndt.okhttpmock.matchers.URLMatcher
 

H

hasHeader(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
hasParam(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
head() - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
head(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
HEAD - Static variable in annotation type com.niklasarndt.okhttpmock.HttpMethod
 
header(String, String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
HeaderMatcher - Class in com.niklasarndt.okhttpmock.matchers
 
HeaderMatcher(String, Pattern) - Constructor for class com.niklasarndt.okhttpmock.matchers.HeaderMatcher
 
headerMatches(String, Pattern) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
HTTP_200_OK - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_204_NO_CONTENT - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_302_FOUND - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_303_SEE_OTHER - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_304_NOT_MODIFIED - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_400_BAD_REQUEST - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_401_UNAUTHORIZED - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_403_FORBIDDEN - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_404_NOT_FOUND - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_405_METHOD_NOT_ALLOWED - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_409_CONFLICT - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HTTP_500_INTERNAL_SERVER_ERROR - Static variable in annotation type com.niklasarndt.okhttpmock.HttpCode
 
HttpCode - Annotation Type in com.niklasarndt.okhttpmock
 
HttpMethod - Annotation Type in com.niklasarndt.okhttpmock
 

I

intercept(Interceptor.Chain) - Method in class com.niklasarndt.okhttpmock.MockInterceptor
 
isConsumed() - Method in class com.niklasarndt.okhttpmock.Rule
 

M

Matcher - Interface in com.niklasarndt.okhttpmock.matchers
 
MatcherHelper - Class in com.niklasarndt.okhttpmock.matchers
 
matches(Matcher) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
matches(Request) - Method in interface com.niklasarndt.okhttpmock.matchers.Matcher
 
matches(Request) - Method in class com.niklasarndt.okhttpmock.matchers.MethodMatcher
 
matches(Request) - Method in class com.niklasarndt.okhttpmock.matchers.NotMatcher
 
matches(Request) - Method in class com.niklasarndt.okhttpmock.matchers.OrMatcher
 
matches(Request) - Method in class com.niklasarndt.okhttpmock.matchers.PatternMatcher
 
MEDIATYPE_FORM_DATA - Static variable in class com.niklasarndt.okhttpmock.MediaTypes
 
MEDIATYPE_FORM_URLENCODED - Static variable in class com.niklasarndt.okhttpmock.MediaTypes
 
MEDIATYPE_HTML - Static variable in class com.niklasarndt.okhttpmock.MediaTypes
 
MEDIATYPE_JSON - Static variable in class com.niklasarndt.okhttpmock.MediaTypes
 
MEDIATYPE_RAW_DATA - Static variable in class com.niklasarndt.okhttpmock.MediaTypes
 
MEDIATYPE_TEXT - Static variable in class com.niklasarndt.okhttpmock.MediaTypes
 
MEDIATYPE_XML - Static variable in class com.niklasarndt.okhttpmock.MediaTypes
 
MediaTypes - Class in com.niklasarndt.okhttpmock
 
MediaTypes() - Constructor for class com.niklasarndt.okhttpmock.MediaTypes
 
method(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
MethodMatcher - Class in com.niklasarndt.okhttpmock.matchers
 
MethodMatcher(String) - Constructor for class com.niklasarndt.okhttpmock.matchers.MethodMatcher
 
MockInterceptor - Class in com.niklasarndt.okhttpmock
An Interceptor for OkHttpClient, which with match request and provide pre-configured mock responses.
MockInterceptor() - Constructor for class com.niklasarndt.okhttpmock.MockInterceptor
Creates a MockInterceptor with a default MockInterceptor.Behavior.SEQUENTIAL behavior
MockInterceptor(MockInterceptor.Behavior) - Constructor for class com.niklasarndt.okhttpmock.MockInterceptor
 
MockInterceptor.Behavior - Enum in com.niklasarndt.okhttpmock
Defines the available behavior modes for a MockInterceptor, regarding the Rules configured on it.

N

not() - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
NotMatcher - Class in com.niklasarndt.okhttpmock.matchers
 
NotMatcher(Matcher) - Constructor for class com.niklasarndt.okhttpmock.matchers.NotMatcher
 

O

options() - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
options(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
OPTIONS - Static variable in annotation type com.niklasarndt.okhttpmock.HttpMethod
 
or() - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
OrMatcher - Class in com.niklasarndt.okhttpmock.matchers
 
OrMatcher(Matcher, Matcher) - Constructor for class com.niklasarndt.okhttpmock.matchers.OrMatcher
 

P

param(String, String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
paramMatches(String, Pattern) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
patch() - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
patch(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
PATCH - Static variable in annotation type com.niklasarndt.okhttpmock.HttpMethod
 
path(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
pathEnds(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
PathMatcher - Class in com.niklasarndt.okhttpmock.matchers
 
PathMatcher(Pattern) - Constructor for class com.niklasarndt.okhttpmock.matchers.PathMatcher
 
pathMatches(Pattern) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
pathStarts(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
pattern - Variable in class com.niklasarndt.okhttpmock.matchers.PatternMatcher
 
PatternMatcher - Class in com.niklasarndt.okhttpmock.matchers
 
PatternMatcher(Pattern) - Constructor for class com.niklasarndt.okhttpmock.matchers.PatternMatcher
 
post() - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
post(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
POST - Static variable in annotation type com.niklasarndt.okhttpmock.HttpMethod
 
prefix(String) - Static method in class com.niklasarndt.okhttpmock.matchers.MatcherHelper
 
put() - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
put(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
PUT - Static variable in annotation type com.niklasarndt.okhttpmock.HttpMethod
 

Q

QueryParamMatcher - Class in com.niklasarndt.okhttpmock.matchers
 
QueryParamMatcher(String, Pattern) - Constructor for class com.niklasarndt.okhttpmock.matchers.QueryParamMatcher
 

R

reason(String, String) - Static method in class com.niklasarndt.okhttpmock.matchers.MatcherHelper
 
RELAYED - com.niklasarndt.okhttpmock.MockInterceptor.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 com.niklasarndt.okhttpmock.MockInterceptor
 
resource(ClassLoader, String) - Static method in class com.niklasarndt.okhttpmock.ClasspathResources
Loads the content from the given classpath resource
resource(String) - Static method in class com.niklasarndt.okhttpmock.ClasspathResources
Loads the content from the given classpath resource
respond(byte[]) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
respond(byte[], MediaType) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
respond(int) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
respond(int, ResponseBody) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
respond(long, InputStream) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
respond(long, InputStream, MediaType) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
respond(InputStream) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
respond(InputStream, MediaType) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
respond(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
respond(String, MediaType) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
respond(Request) - Method in interface com.niklasarndt.okhttpmock.RuleAnswer
 
respond(ResponseBody) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
Rule - Class in com.niklasarndt.okhttpmock
 
Rule.Builder - Class in com.niklasarndt.okhttpmock
 
RuleAnswer - Interface in com.niklasarndt.okhttpmock
 

S

SEQUENTIAL - com.niklasarndt.okhttpmock.MockInterceptor.Behavior
The requests must match the same order the Rules were configured, an AssertionError will be thrown otherwise.
suffix(String) - Static method in class com.niklasarndt.okhttpmock.matchers.MatcherHelper
 

T

times(int) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
toString() - Method in class com.niklasarndt.okhttpmock.matchers.HeaderMatcher
 
toString() - Method in class com.niklasarndt.okhttpmock.matchers.MethodMatcher
 
toString() - Method in class com.niklasarndt.okhttpmock.matchers.NotMatcher
 
toString() - Method in class com.niklasarndt.okhttpmock.matchers.OrMatcher
 
toString() - Method in class com.niklasarndt.okhttpmock.matchers.PathMatcher
 
toString() - Method in class com.niklasarndt.okhttpmock.matchers.QueryParamMatcher
 
toString() - Method in class com.niklasarndt.okhttpmock.matchers.URLMatcher
 
toString() - Method in class com.niklasarndt.okhttpmock.Rule
 

U

UNORDERED - com.niklasarndt.okhttpmock.MockInterceptor.Behavior
The requests must match the configured Rules at any order, if no rule applies an AssertionError will be thrown.
url(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
urlEnds(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
URLMatcher - Class in com.niklasarndt.okhttpmock.matchers
 
URLMatcher(Pattern) - Constructor for class com.niklasarndt.okhttpmock.matchers.URLMatcher
 
urlMatches(Pattern) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 
urlStarts(String) - Method in class com.niklasarndt.okhttpmock.Rule.Builder
 

V

valueOf(String) - Static method in enum com.niklasarndt.okhttpmock.MockInterceptor.Behavior
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.niklasarndt.okhttpmock.MockInterceptor.Behavior
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I M N O P Q R S T U V 
All Classes|All Packages