- hashCode() - Method in class net.jadler.KeyValues
-
- havingBody(Matcher<? super String>) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request body predicate.
- havingBody(Matcher<? super String>) - Method in interface net.jadler.RequestMatching
-
Adds a request body predicate.
- havingBodyEqualTo(String) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request body predicate.
- havingBodyEqualTo(String) - Method in interface net.jadler.RequestMatching
-
Adds a request body predicate.
- havingHeader(String, Matcher<? super List<String>>) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request header predicate.
- havingHeader(String) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request header existence predicate.
- havingHeader(String, Matcher<? super List<String>>) - Method in interface net.jadler.RequestMatching
-
Adds a request header predicate.
- havingHeader(String) - Method in interface net.jadler.RequestMatching
-
Adds a request header existence predicate.
- havingHeaderEqualTo(String, String) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request header predicate.
- havingHeaderEqualTo(String, String) - Method in interface net.jadler.RequestMatching
-
Adds a request header predicate.
- havingHeaders(String...) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request headers existence predicate.
- havingHeaders(String...) - Method in interface net.jadler.RequestMatching
-
Adds a request headers existence predicate.
- havingMethod(Matcher<? super String>) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request method predicate.
- havingMethod(Matcher<? super String>) - Method in interface net.jadler.RequestMatching
-
Adds a request method predicate.
- havingMethodEqualTo(String) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request method predicate.
- havingMethodEqualTo(String) - Method in interface net.jadler.RequestMatching
-
Adds a request method predicate.
- havingParameter(String, Matcher<? super List<String>>) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request parameter predicate.
- havingParameter(String) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request parameter existence predicate.
- havingParameter(String, Matcher<? super List<String>>) - Method in interface net.jadler.RequestMatching
-
Adds a request parameter predicate.
- havingParameter(String) - Method in interface net.jadler.RequestMatching
-
Adds a request parameter existence predicate.
- havingParameterEqualTo(String, String) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request parameter predicate.
- havingParameterEqualTo(String, String) - Method in interface net.jadler.RequestMatching
-
Adds a request parameter predicate.
- havingParameters(String...) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request parameters existence predicate.
- havingParameters(String...) - Method in interface net.jadler.RequestMatching
-
Adds a request parameters existence predicate.
- havingPath(Matcher<? super String>) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request path predicate.
- havingPath(Matcher<? super String>) - Method in interface net.jadler.RequestMatching
-
Adds a request path predicate.
- havingPathEqualTo(String) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request path predicate.
- havingPathEqualTo(String) - Method in interface net.jadler.RequestMatching
-
Adds a request path predicate.
- havingQueryString(Matcher<? super String>) - Method in class net.jadler.AbstractRequestMatching
-
Adds a query string predicate.
- havingQueryString(Matcher<? super String>) - Method in interface net.jadler.RequestMatching
-
Adds a query string predicate.
- havingQueryStringEqualTo(String) - Method in class net.jadler.AbstractRequestMatching
-
Adds a query string predicate.
- havingQueryStringEqualTo(String) - Method in interface net.jadler.RequestMatching
-
Adds a query string predicate.
- havingRawBodyEqualTo(byte[]) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request body predicate.
- havingRawBodyEqualTo(byte[]) - Method in interface net.jadler.RequestMatching
-
Adds a request body predicate.
- header(String, String) - Method in class net.jadler.Request.Builder
-
Adds a request header to the constructed request instance.
- header(String, String) - Method in class net.jadler.stubbing.StubResponse.Builder
-
Adds a new stub response header.
- HeaderRequestMatcher - Class in net.jadler.matchers
-
- HeaderRequestMatcher(Matcher<? super List<String>>, String) - Constructor for class net.jadler.matchers.HeaderRequestMatcher
-
Protected constructor useful only when subtyping.
- headers(KeyValues) - Method in class net.jadler.Request.Builder
-
Sets the request headers (all previously defined headers will be lost).
- headers(KeyValues) - Method in class net.jadler.stubbing.StubResponse.Builder
-
Sets new stub response headers (all previously set headers are discarded).
- HttpStub - Class in net.jadler.stubbing
-
An http stub is a WHEN-THEN pair (when an http request with specific properties arrives,
then respond with a defined response).
- HttpStub(Collection<Matcher<? super Request>>, Responder) - Constructor for class net.jadler.stubbing.HttpStub
-
- RawBodyRequestMatcher - Class in net.jadler.matchers
-
A
RequestMatcher
used for matching the request body as an array of bytes.
- RawBodyRequestMatcher(Matcher<byte[]>) - Constructor for class net.jadler.matchers.RawBodyRequestMatcher
-
Protected constructor useful only when subtyping.
- receivedNever() - Method in class net.jadler.mocking.Verifying
-
Checks that no request described in this verifying object has been received so far.
- receivedOnce() - Method in class net.jadler.mocking.Verifying
-
Checks that exactly one request described in this verifying object has been received so far.
- receivedTimes(Matcher<Integer>) - Method in class net.jadler.mocking.Verifying
-
Checks whether the number of requests described in this verifying object received so far matches the given predicate.
- receivedTimes(int) - Method in class net.jadler.mocking.Verifying
-
Checks whether the number of requests described in this verifying object received so far matches the exact value.
- registerRequestManager(RequestManager) - Method in class net.jadler.stubbing.server.jdk.JdkStubHttpServer
-
- registerRequestManager(RequestManager) - Method in class net.jadler.stubbing.server.jetty.JettyStubHttpServer
-
Registers a response provider.
- registerRequestManager(RequestManager) - Method in interface net.jadler.stubbing.server.StubHttpServer
-
Registers a response provider.
- Request - Class in net.jadler
-
Immutable http request abstraction.
- Request.Builder - Class in net.jadler
-
A builder class for
Request
instances.
- requestBody(Matcher<? super String>) - Static method in class net.jadler.matchers.BodyRequestMatcher
-
Factory method to create new instance of this matcher.
- requestHeader(String, Matcher<? super List<String>>) - Static method in class net.jadler.matchers.HeaderRequestMatcher
-
Factory method to create new instance of this matcher.
- RequestManager - Interface in net.jadler
-
A stateful component which provides stub responses for given requests.
- RequestMatcher<T> - Class in net.jadler.matchers
-
Convenient base class for all Jadler request matchers.
- RequestMatcher(Matcher<? super T>) - Constructor for class net.jadler.matchers.RequestMatcher
-
- RequestMatching<T extends RequestMatching<T>> - Interface in net.jadler
-
This interface introduces methods for a fluent request matching.
- requestMethod(Matcher<? super String>) - Static method in class net.jadler.matchers.MethodRequestMatcher
-
Factory method to create new instance of this matcher.
- requestParameter(String, Matcher<? super List<String>>) - Static method in class net.jadler.matchers.ParameterRequestMatcher
-
Factory method to create new instance of this matcher.
- requestPath(Matcher<? super String>) - Static method in class net.jadler.matchers.PathRequestMatcher
-
Factory method to create new instance of this matcher.
- requestQueryString(Matcher<? super String>) - Static method in class net.jadler.matchers.QueryStringRequestMatcher
-
Factory method to create new instance of this matcher.
- requestRawBody(Matcher<byte[]>) - Static method in class net.jadler.matchers.RawBodyRequestMatcher
-
Factory method to create new instance of this matcher.
- RequestStubbing - Interface in net.jadler.stubbing
-
This interface defines methods for the http stubbing WHEN part.
- requestURI(URI) - Method in class net.jadler.Request.Builder
-
Sets the request URI.
- reset() - Method in class net.jadler.JadlerMocker
-
Resets this mocker instance so it can be reused.
- resetJadler() - Static method in class net.jadler.Jadler
-
Resets Jadler by clearing all previously created stubs as well as stored received requests.
- respond() - Method in interface net.jadler.stubbing.RequestStubbing
-
Finishes the WHEN part of this stubbing and starts the THEN part.
- respond() - Method in class net.jadler.stubbing.Stubbing
-
Finishes the WHEN part of this stubbing and starts the THEN part.
- Responder - Interface in net.jadler.stubbing
-
This interface provides a way to define a stub response in a dynamic way (instead of the static approach
triggered by the
RequestStubbing.respond()
method).
- respondsWithDefaultContentType(String) - Method in class net.jadler.Jadler.OngoingConfiguration
-
- respondsWithDefaultEncoding(Charset) - Method in class net.jadler.Jadler.OngoingConfiguration
-
- respondsWithDefaultHeader(String, String) - Method in class net.jadler.Jadler.OngoingConfiguration
-
- respondsWithDefaultStatus(int) - Method in class net.jadler.Jadler.OngoingConfiguration
-
- respondUsing(Responder) - Method in interface net.jadler.stubbing.RequestStubbing
-
Finishes the WHEN part of this stubbing and allows to define the THEN part in
a dynamic way.
- respondUsing(Responder) - Method in class net.jadler.stubbing.Stubbing
-
Finishes the WHEN part of this stubbing and allows to define the THEN part in
a dynamic way.
- ResponseStubbing - Interface in net.jadler.stubbing
-
This interface defines methods for the http stubbing THEN part.
- retrieveValue(Request) - Method in class net.jadler.matchers.BodyRequestMatcher
-
Retrieves the body of the given request
- retrieveValue(Request) - Method in class net.jadler.matchers.HeaderRequestMatcher
-
- retrieveValue(Request) - Method in class net.jadler.matchers.MethodRequestMatcher
-
Retrieves the the method of the given request
- retrieveValue(Request) - Method in class net.jadler.matchers.ParameterRequestMatcher
-
- retrieveValue(Request) - Method in class net.jadler.matchers.PathRequestMatcher
-
Retrieves the path of the given request.
- retrieveValue(Request) - Method in class net.jadler.matchers.QueryStringRequestMatcher
-
Retrieves the query string value of the given request.
- retrieveValue(Request) - Method in class net.jadler.matchers.RawBodyRequestMatcher
-
Retrieves the body of the given request
- retrieveValue(Request) - Method in class net.jadler.matchers.RequestMatcher
-
Reads a value of the given request object (the value can be anything retrievable from the request
object: method, header, body,...).
- setDefaultEncoding(Charset) - Method in class net.jadler.JadlerMocker
-
Defines default charset of every stub http response (if not redefined in the particular stub)
- setDefaultStatus(int) - Method in class net.jadler.JadlerMocker
-
Defines a default status to be returned in every stub http response (if not redefined in the
particular stub rule)
- setRecordRequests(boolean) - Method in class net.jadler.JadlerMocker
-
By default Jadler records all incoming requests (including their bodies) so it can provide mocking
(verification) features defined in
Mocker
.
- skipsRequestsRecording() - Method in class net.jadler.Jadler.OngoingConfiguration
-
- start() - Method in class net.jadler.JadlerMocker
-
Starts the underlying stub http server
- start() - Method in class net.jadler.stubbing.server.jdk.JdkStubHttpServer
-
- start() - Method in class net.jadler.stubbing.server.jetty.JettyStubHttpServer
-
Starts the underlying http server.
- start() - Method in interface net.jadler.stubbing.server.StubHttpServer
-
Starts the underlying http server.
- start() - Method in interface net.jadler.stubbing.server.StubHttpServerManager
-
Starts the underlying stub http server
- status(int) - Method in class net.jadler.stubbing.StubResponse.Builder
-
Sets the stub response http status.
- stop() - Method in class net.jadler.stubbing.server.jdk.JdkStubHttpServer
-
- stop() - Method in class net.jadler.stubbing.server.jetty.JettyStubHttpServer
-
Stops the underlying http server.
- stop() - Method in interface net.jadler.stubbing.server.StubHttpServer
-
Stops the underlying http server.
- Stubber - Interface in net.jadler.stubbing
-
An implementation of this interface provides a way to create new stubbing process
(ongoing definition of a WHEN-THEN rule).
- Stubbing - Class in net.jadler.stubbing
-
Internal class for defining http stubs in a fluid fashion.
- StubbingFactory - Class in net.jadler.stubbing
-
Factory class for creating
Stubbing
instances.
- StubbingFactory() - Constructor for class net.jadler.stubbing.StubbingFactory
-
- StubHttpServer - Interface in net.jadler.stubbing.server
-
Interface for a stub http server component.
- StubHttpServerManager - Interface in net.jadler.stubbing.server
-
An implementation of this interface can manage an underlying stub http server.
- StubResponse - Class in net.jadler.stubbing
-
Definition of a stub http response.
- StubResponse.Builder - Class in net.jadler.stubbing
-
- withBody(String) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the stub http response body as a string.
- withBody(Reader) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the stub http response body as the content of the given reader.
- withBody(InputStream) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the stub http response body as the content of the given input stream.
- withBody(byte[]) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the stub http response body as an array of bytes.
- withBody(String) - Method in class net.jadler.stubbing.Stubbing
-
Sets the stub http response body as a string.
- withBody(Reader) - Method in class net.jadler.stubbing.Stubbing
-
Sets the stub http response body as the content of the given reader.
- withBody(InputStream) - Method in class net.jadler.stubbing.Stubbing
-
Sets the stub http response body as the content of the given input stream.
- withBody(byte[]) - Method in class net.jadler.stubbing.Stubbing
-
Sets the stub http response body as an array of bytes.
- withContentType(String) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the content type of the http stub response.
- withContentType(String) - Method in class net.jadler.stubbing.Stubbing
-
Sets the content type of the http stub response.
- withDefaultResponseContentType(String) - Method in class net.jadler.Jadler.OngoingConfiguration
-
Defines a default content type of every stub http response.
- withDefaultResponseContentType(String) - Method in interface net.jadler.JadlerConfiguration
-
Defines a default content type of every stub http response.
- withDefaultResponseContentType(String) - Method in class net.jadler.junit.rule.JadlerRule
-
Defines a default content type of every stub http response.
- withDefaultResponseEncoding(Charset) - Method in class net.jadler.Jadler.OngoingConfiguration
-
Defines a default encoding of every stub http response.
- withDefaultResponseEncoding(Charset) - Method in interface net.jadler.JadlerConfiguration
-
Defines a default encoding of every stub http response.
- withDefaultResponseEncoding(Charset) - Method in class net.jadler.junit.rule.JadlerRule
-
Defines a default encoding of every stub http response.
- withDefaultResponseHeader(String, String) - Method in class net.jadler.Jadler.OngoingConfiguration
-
Defines a response header that will be sent in every http stub response.
- withDefaultResponseHeader(String, String) - Method in interface net.jadler.JadlerConfiguration
-
Defines a response header that will be sent in every http stub response.
- withDefaultResponseHeader(String, String) - Method in class net.jadler.junit.rule.JadlerRule
-
Defines a response header that will be sent in every http stub response.
- withDefaultResponseStatus(int) - Method in class net.jadler.Jadler.OngoingConfiguration
-
Sets the default http response status.
- withDefaultResponseStatus(int) - Method in interface net.jadler.JadlerConfiguration
-
Sets the default http response status.
- withDefaultResponseStatus(int) - Method in class net.jadler.junit.rule.JadlerRule
-
Sets the default http response status.
- withDelay(long, TimeUnit) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the response delay.
- withDelay(long, TimeUnit) - Method in class net.jadler.stubbing.Stubbing
-
Sets the response delay.
- withEncoding(Charset) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the character encoding of the http stub response.
- withEncoding(Charset) - Method in class net.jadler.stubbing.Stubbing
-
Sets the character encoding of the http stub response.
- withHeader(String, String) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Adds a stub http response header.
- withHeader(String, String) - Method in class net.jadler.stubbing.Stubbing
-
Adds a stub http response header.
- withRequestsRecordingDisabled() - Method in class net.jadler.Jadler.OngoingConfiguration
-
Disables incoming http requests recording.
- withRequestsRecordingDisabled() - Method in interface net.jadler.JadlerConfiguration
-
Disables incoming http requests recording.
- withRequestsRecordingDisabled() - Method in class net.jadler.junit.rule.JadlerRule
-
Disables incoming http requests recording.
- withStatus(int) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the http stub response status.
- withStatus(int) - Method in class net.jadler.stubbing.Stubbing
-
Sets the http stub response status.