All Classes All Packages
A
- AbstractRequestMatching<T extends RequestMatching<T>> - Class in net.jadler
-
A base implementation of the
RequestMatchinginterface. - AbstractRequestMatching() - Constructor for class net.jadler.AbstractRequestMatching
- add(String, String) - Method in class net.jadler.KeyValues
-
Adds new key-value pair.
- addAll(KeyValues) - Method in class net.jadler.KeyValues
-
Adds all values from the given instance.
- addDefaultHeader(String, String) - Method in class net.jadler.JadlerMocker
-
Adds a default header to be added to every stub http response.
B
- body(byte[]) - Method in class net.jadler.Request.Builder
-
Sets the request body.
- body(byte[]) - Method in class net.jadler.stubbing.StubResponse.Builder
-
Sets the response body as an array of bytes.
- body(String, Charset) - Method in class net.jadler.stubbing.StubResponse.Builder
-
Sets the response body as a string.
- BodyRequestMatcher - Class in net.jadler.matchers
-
A
RequestMatcherused for matching the request body as a string. - BodyRequestMatcher(Matcher<? super String>) - Constructor for class net.jadler.matchers.BodyRequestMatcher
-
Protected constructor useful only when subtyping.
- build() - Method in class net.jadler.Request.Builder
- build() - Method in class net.jadler.stubbing.StubResponse.Builder
- builder() - Static method in class net.jadler.Request
- builder() - Static method in class net.jadler.stubbing.StubResponse
C
- close() - Method in class net.jadler.JadlerMocker
-
Stops the underlying stub http server.
- close() - Method in interface net.jadler.stubbing.server.StubHttpServerManager
-
Stops the underlying stub http server.
- closeJadler() - Static method in class net.jadler.Jadler
-
Stops the underlying
StubHttpServerand closes Jadler. - createRule() - Method in class net.jadler.stubbing.Stubbing
-
Creates a
HttpStubinstance from this Stubbing instance. - createStubbing(Charset, int, MultiMap) - Method in class net.jadler.stubbing.StubbingFactory
-
Creates new stubbing instance.
D
- delay(long, TimeUnit) - Method in class net.jadler.stubbing.StubResponse.Builder
-
Sets the response delay.
- describeMismatch(Object, Description) - Method in class net.jadler.matchers.RequestMatcher
- describeMismatch(Request) - Method in class net.jadler.stubbing.HttpStub
-
Returns a reason why the given request doesn't match this rule.
- describeTo(Description) - Method in class net.jadler.matchers.RequestMatcher
E
- EMPTY - Static variable in class net.jadler.KeyValues
-
An empty instance.
- EMPTY - Static variable in class net.jadler.stubbing.StubResponse
-
An empty stub response containing nothing but defaults (empty body, http status 200, no headers and no delay)
- encoding(Charset) - Method in class net.jadler.Request.Builder
-
Sets the request encoding.
- equals(Object) - Method in class net.jadler.KeyValues
- evaluateVerification(Collection<Matcher<? super Request>>, Matcher<Integer>) - Method in class net.jadler.JadlerMocker
- evaluateVerification(Collection<Matcher<? super Request>>, Matcher<Integer>) - Method in interface net.jadler.RequestManager
-
Verifies whether the number of received http requests fitting the given predicates is as expected.
G
- getBody() - Method in class net.jadler.stubbing.StubResponse
- getBodyAsBytes() - Method in class net.jadler.Request
- getBodyAsStream() - Method in class net.jadler.Request
-
Returns the body content as an
InputStreaminstance. - getBodyAsString() - Method in class net.jadler.Request
- getContentType() - Method in class net.jadler.Request
- getDelay() - Method in class net.jadler.stubbing.StubResponse
- getEncoding() - Method in class net.jadler.Request
- getEncoding() - Method in class net.jadler.stubbing.StubResponse
- getHeaders() - Method in class net.jadler.Request
- getHeaders() - Method in class net.jadler.stubbing.StubResponse
- getKeys() - Method in class net.jadler.KeyValues
- getMethod() - Method in class net.jadler.Request
- getParameters() - Method in class net.jadler.Request
- getPort() - Method in interface net.jadler.stubbing.server.StubHttpServer
- getStatus() - Method in class net.jadler.stubbing.StubResponse
- getStubHttpServerPort() - Method in class net.jadler.JadlerMocker
- getStubHttpServerPort() - Method in interface net.jadler.stubbing.server.StubHttpServerManager
- getURI() - Method in class net.jadler.Request
- getValue(String) - Method in class net.jadler.KeyValues
-
Returns the first value for the given key
- getValues(String) - Method in class net.jadler.KeyValues
-
Returns all values for the given key
H
- 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) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request header existence predicate.
- havingHeader(String) - Method in interface net.jadler.RequestMatching
-
Adds a request header existence predicate.
- havingHeader(String, Matcher<? super List<String>>) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request header predicate.
- havingHeader(String, Matcher<? super List<String>>) - Method in interface net.jadler.RequestMatching
-
Adds a request header 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) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request parameter existence predicate.
- havingParameter(String) - Method in interface net.jadler.RequestMatching
-
Adds a request parameter existence predicate.
- havingParameter(String, Matcher<? super List<String>>) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request parameter predicate.
- havingParameter(String, Matcher<? super List<String>>) - Method in interface net.jadler.RequestMatching
-
Adds a request parameter 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
-
A
RequestMatcherused for matching a request header. - 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
I
- initJadler() - Static method in class net.jadler.Jadler
-
Initializes Jadler and starts a default stub server
net.jadler.stubbing.server.jetty.JettyStubHttpServerserving the http protocol listening on any free port. - initJadlerListeningOn(int) - Static method in class net.jadler.Jadler
-
Initializes Jadler and starts a default stub server
net.jadler.stubbing.server.jetty.JettyStubHttpServerserving the http protocol listening on the given port. - initJadlerUsing(StubHttpServer) - Static method in class net.jadler.Jadler
-
Initializes Jadler and starts the given
StubHttpServer. - isStarted() - Method in class net.jadler.JadlerMocker
- isStarted() - Method in interface net.jadler.stubbing.server.StubHttpServerManager
J
- Jadler - Class in net.jadler
-
This class is a gateway to the whole Jadler library.
- Jadler.OngoingConfiguration - Class in net.jadler
-
This class serves as a DSL support for additional Jadler configuration.
- JadlerConfiguration - Interface in net.jadler
-
An interface for classes capable of providing defaults for the Jadler configuration.
- JadlerException - Exception in net.jadler.exception
-
Runtime exception used in jadler on various places.
- JadlerException() - Constructor for exception net.jadler.exception.JadlerException
- JadlerException(String) - Constructor for exception net.jadler.exception.JadlerException
- JadlerException(String, Throwable) - Constructor for exception net.jadler.exception.JadlerException
- JadlerException(Throwable) - Constructor for exception net.jadler.exception.JadlerException
- JadlerMocker - Class in net.jadler
-
This class represents the very hearth of the Jadler library.
- JadlerMocker(StubHttpServer) - Constructor for class net.jadler.JadlerMocker
-
Creates new JadlerMocker instance bound to the given http stub server.
K
- KeyValues - Class in net.jadler
-
This class represents a key-value data structure with following features:
- KeyValues() - Constructor for class net.jadler.KeyValues
-
Creates new empty instance.
M
- matches(Object) - Method in class net.jadler.matchers.RequestMatcher
-
Checks whether the given
Requestobject matches this matcher. - matches(Request) - Method in class net.jadler.stubbing.HttpStub
- method(String) - Method in class net.jadler.Request.Builder
-
Sets the request method.
- MethodRequestMatcher - Class in net.jadler.matchers
-
A
RequestMatcherused for matching the request method. - MethodRequestMatcher(Matcher<? super String>) - Constructor for class net.jadler.matchers.MethodRequestMatcher
-
Protected constructor useful only when subtyping.
- Mocker - Interface in net.jadler.mocking
-
An implementation of this interface provides a way to create new ongoing verification process.
N
- net.jadler - package net.jadler
- net.jadler.exception - package net.jadler.exception
- net.jadler.matchers - package net.jadler.matchers
- net.jadler.mocking - package net.jadler.mocking
- net.jadler.stubbing - package net.jadler.stubbing
- net.jadler.stubbing.server - package net.jadler.stubbing.server
- nextResponse(Request) - Method in class net.jadler.stubbing.HttpStub
- nextResponse(Request) - Method in interface net.jadler.stubbing.Responder
-
Generates dynamically a stub response for an http request fitting the WHEN part.
- numberOfRequestsMatching(Collection<Matcher<? super Request>>) - Method in class net.jadler.JadlerMocker
-
Deprecated.
- numberOfRequestsMatching(Collection<Matcher<? super Request>>) - Method in interface net.jadler.RequestManager
-
Deprecated.this (rather internal) method has been deprecated. Please use
RequestManager.evaluateVerification(java.util.Collection, org.hamcrest.Matcher)instead
O
- onRequest() - Static method in class net.jadler.Jadler
-
Starts new http stubbing (defining new WHEN-THEN rule).
- onRequest() - Method in class net.jadler.JadlerMocker
-
Starts new stubbing (definition of a WHEN-THEN rule).
- onRequest() - Method in interface net.jadler.stubbing.Stubber
-
Starts new stubbing (definition of a WHEN-THEN rule).
P
- ParameterRequestMatcher - Class in net.jadler.matchers
-
A
RequestMatcherused for matching a request parameter. - ParameterRequestMatcher(Matcher<? super List<String>>, String) - Constructor for class net.jadler.matchers.ParameterRequestMatcher
-
Protected constructor useful only when subtyping.
- PathRequestMatcher - Class in net.jadler.matchers
-
A
RequestMatcherused for matching the request path. - PathRequestMatcher(Matcher<? super String>) - Constructor for class net.jadler.matchers.PathRequestMatcher
-
Protected constructor useful only when subtyping.
- port() - Static method in class net.jadler.Jadler
-
Use this method to retrieve the port the underlying http stub server is listening on
- pred - Variable in class net.jadler.matchers.RequestMatcher
- predicates - Variable in class net.jadler.AbstractRequestMatching
- provideDescription() - Method in class net.jadler.matchers.BodyRequestMatcher
-
Provides a description of this matcher in form of a string consisting of "noun verb", where noun describes the value retrieved using
RequestMatcher.retrieveValue(net.jadler.Request)and verb is usually a correct form of to be. - provideDescription() - Method in class net.jadler.matchers.HeaderRequestMatcher
-
Provides a description of this matcher in form of a string consisting of "noun verb", where noun describes the value retrieved using
RequestMatcher.retrieveValue(net.jadler.Request)and verb is usually a correct form of to be. - provideDescription() - Method in class net.jadler.matchers.MethodRequestMatcher
-
Provides a description of this matcher in form of a string consisting of "noun verb", where noun describes the value retrieved using
RequestMatcher.retrieveValue(net.jadler.Request)and verb is usually a correct form of to be. - provideDescription() - Method in class net.jadler.matchers.ParameterRequestMatcher
-
Provides a description of this matcher in form of a string consisting of "noun verb", where noun describes the value retrieved using
RequestMatcher.retrieveValue(net.jadler.Request)and verb is usually a correct form of to be. - provideDescription() - Method in class net.jadler.matchers.PathRequestMatcher
-
Provides a description of this matcher in form of a string consisting of "noun verb", where noun describes the value retrieved using
RequestMatcher.retrieveValue(net.jadler.Request)and verb is usually a correct form of to be. - provideDescription() - Method in class net.jadler.matchers.QueryStringRequestMatcher
-
Provides a description of this matcher in form of a string consisting of "noun verb", where noun describes the value retrieved using
RequestMatcher.retrieveValue(net.jadler.Request)and verb is usually a correct form of to be. - provideDescription() - Method in class net.jadler.matchers.RawBodyRequestMatcher
-
Provides a description of this matcher in form of a string consisting of "noun verb", where noun describes the value retrieved using
RequestMatcher.retrieveValue(net.jadler.Request)and verb is usually a correct form of to be. - provideDescription() - Method in class net.jadler.matchers.RequestMatcher
-
Provides a description of this matcher in form of a string consisting of "noun verb", where noun describes the value retrieved using
RequestMatcher.retrieveValue(net.jadler.Request)and verb is usually a correct form of to be. - provideStubResponseFor(Request) - Method in class net.jadler.JadlerMocker
-
Returns a stub response for the given request.
- provideStubResponseFor(Request) - Method in interface net.jadler.RequestManager
-
Returns a stub response for the given request.
Q
- QueryStringRequestMatcher - Class in net.jadler.matchers
-
A
RequestMatcherused for matching the request query string. - QueryStringRequestMatcher(Matcher<? super String>) - Constructor for class net.jadler.matchers.QueryStringRequestMatcher
-
Protected constructor useful only when subtyping.
R
- RawBodyRequestMatcher - Class in net.jadler.matchers
-
A
RequestMatcherused 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(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.
- 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.
- 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
Requestinstances. - 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
-
Deprecated.use
Jadler.OngoingConfiguration.withDefaultResponseContentType(java.lang.String)insteadDefines a default content type of every stub http response. This value will be used for all stub responses with no specific content type defined. (see
ResponseStubbing.withContentType(java.lang.String)) - respondsWithDefaultEncoding(Charset) - Method in class net.jadler.Jadler.OngoingConfiguration
-
Deprecated.use
Jadler.OngoingConfiguration.withDefaultResponseEncoding(java.nio.charset.Charset)insteadDefines a default encoding of every stub http response. This value will be used for all stub responses with no specific encoding defined. (see
ResponseStubbing.withEncoding(java.nio.charset.Charset)) - respondsWithDefaultHeader(String, String) - Method in class net.jadler.Jadler.OngoingConfiguration
-
Deprecated.use
Jadler.OngoingConfiguration.withDefaultResponseHeader(java.lang.String, java.lang.String)insteadDefines a response header that will be sent in every http stub response. Can be called repeatedly to define more headers.
- respondsWithDefaultStatus(int) - Method in class net.jadler.Jadler.OngoingConfiguration
-
Deprecated.use
Jadler.OngoingConfiguration.withDefaultResponseStatus(int)insteadSets the default http response status. This value will be used for all stub responses with no specific http status defined. (see
ResponseStubbing.withStatus(int)) - 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
-
Retrieves a header (defined in
HeaderRequestMatcher(org.hamcrest.Matcher, java.lang.String)) of the given request. - 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
-
Retrieves a parameter (defined in
ParameterRequestMatcher(org.hamcrest.Matcher, java.lang.String)) of the given request. - 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,...).
S
- 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
-
Deprecated.use
Jadler.OngoingConfiguration.withRequestsRecordingDisabled()insteadDisables incoming http requests recording.
Jadler mocking (verification) capabilities are implemented by storing all incoming requests (including their bodies). This could cause troubles in some very specific testing scenarios, for further explanation jump straight to
JadlerMocker.setRecordRequests(boolean).Please note this method should be used very rarely and definitely should not be treated as a default.
- start() - Method in class net.jadler.JadlerMocker
-
Starts the underlying stub 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 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
Stubbinginstances. - 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
-
A builder class for creating new
StubResponseinstances.
T
- that() - Method in class net.jadler.Jadler.OngoingConfiguration
-
Deprecated.added just for backward compatibility reasons, does nothing but returning this ongoing configuration instance. Use the configuration methods of this instance directly instead.
- that(Matcher<? super Request>) - Method in class net.jadler.AbstractRequestMatching
-
Adds a request predicate to this request matching.
- that(Matcher<? super Request>) - Method in interface net.jadler.RequestMatching
-
Adds a request predicate to this request matching.
- thenRespond() - Method in interface net.jadler.stubbing.ResponseStubbing
-
Starts a definition of a subsequent stub response.
- thenRespond() - Method in class net.jadler.stubbing.Stubbing
-
Starts a definition of a subsequent stub response.
- toString() - Method in class net.jadler.KeyValues
- toString() - Method in class net.jadler.Request
- toString() - Method in class net.jadler.stubbing.HttpStub
- toString() - Method in class net.jadler.stubbing.StubResponse
V
- VerificationException - Error in net.jadler.mocking
-
A runtime exception signalizing a failure of verification.
- VerificationException(String) - Constructor for error net.jadler.mocking.VerificationException
- Verifying - Class in net.jadler.mocking
-
Allows defining new verification in a fluid fashion.
- Verifying(RequestManager) - Constructor for class net.jadler.mocking.Verifying
- verifyThatRequest() - Static method in class net.jadler.Jadler
-
Starts new verification (checking that an http request with given properties was or was not received)
- verifyThatRequest() - Method in class net.jadler.JadlerMocker
-
Starts new verification process.
- verifyThatRequest() - Method in interface net.jadler.mocking.Mocker
-
Starts new verification process.
W
- withBody(byte[]) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the stub http response body as an array of bytes.
- withBody(byte[]) - Method in class net.jadler.stubbing.Stubbing
-
Sets the stub http response body as an array of bytes.
- withBody(InputStream) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the stub http response body as the content of the given input stream.
- withBody(InputStream) - Method in class net.jadler.stubbing.Stubbing
-
Sets the stub http response body as the content of the given input stream.
- withBody(Reader) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the stub http response body as the content of the given reader.
- withBody(Reader) - Method in class net.jadler.stubbing.Stubbing
-
Sets the stub http response body as the content of the given reader.
- withBody(String) - Method in interface net.jadler.stubbing.ResponseStubbing
-
Sets the stub http response body as a string.
- withBody(String) - Method in class net.jadler.stubbing.Stubbing
-
Sets the stub http response body as a string.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
All Classes All Packages