Skip navigation links
B C E F I M O P R S V W 

B

bind(Integer...) - Method in class org.mockserver.client.MockServerClient
Bind new ports to listen on

C

clear(HttpRequest) - Method in class org.mockserver.client.MockServerClient
Clear all expectations and logs that match the http
clear(HttpRequest, ClearType) - Method in class org.mockserver.client.MockServerClient
Clear expectations, logs or both that match the http
ClientException - Exception in org.mockserver.client
 
close() - Method in class org.mockserver.client.MockServerClient
 
contextPath() - Method in class org.mockserver.client.MockServerClient
 

E

error(HttpError) - Method in class org.mockserver.client.ForwardChainExpectation
Return error when expectation is matched
ExpectationInitializer - Interface in org.mockserver.client.initialize
 

F

forward(HttpForward) - Method in class org.mockserver.client.ForwardChainExpectation
Forward request to the specified host and port when expectation is matched
forward(HttpTemplate) - Method in class org.mockserver.client.ForwardChainExpectation
Evaluate Velocity or JavaScript template to generate request to forward when expectation is matched
forward(HttpClassCallback) - Method in class org.mockserver.client.ForwardChainExpectation
Call method on local class in same JVM implementing ExpectationResponseCallback to generate request to forward when expectation is matched
forward(ExpectationForwardCallback) - Method in class org.mockserver.client.ForwardChainExpectation
Call method on object locally or remotely (over web socket) to generate request to forward when expectation is matched
forward(ExpectationForwardCallback, Delay) - Method in class org.mockserver.client.ForwardChainExpectation
Call method on object locally or remotely (over web socket) to generate request to forward when expectation is matched
forward(HttpOverrideForwardedRequest) - Method in class org.mockserver.client.ForwardChainExpectation
Override fields, headers, and cookies etc in request being forwarded with specified fields, headers and cookies, etc in the specified request when expectation is matched
ForwardChainExpectation - Class in org.mockserver.client
 

I

initializeExpectations(MockServerClient) - Method in interface org.mockserver.client.initialize.ExpectationInitializer
 
isRunning() - Method in class org.mockserver.client.MockServerClient
Returns whether MockServer is running
isRunning(int, long, TimeUnit) - Method in class org.mockserver.client.MockServerClient
Returns whether server MockServer is running, by polling the MockServer a configurable amount of times
isSecure() - Method in class org.mockserver.client.MockServerClient
 

M

MockServerClient - Class in org.mockserver.client
 
MockServerClient(CompletableFuture<Integer>) - Constructor for class org.mockserver.client.MockServerClient
Start the client communicating to a MockServer on localhost at the port specified with the Future
MockServerClient(String, int) - Constructor for class org.mockserver.client.MockServerClient
Start the client communicating to a MockServer at the specified host and port for example:
MockServerClient(String, int, String) - Constructor for class org.mockserver.client.MockServerClient
Start the client communicating to a MockServer at the specified host and port and contextPath for example:

O

org.mockserver.client - package org.mockserver.client
 
org.mockserver.client.initialize - package org.mockserver.client.initialize
 

P

portFuture - Variable in class org.mockserver.client.MockServerClient
 

R

remoteAddress() - Method in class org.mockserver.client.MockServerClient
 
reset() - Method in class org.mockserver.client.MockServerClient
Reset MockServer by clearing all expectations
respond(HttpResponse) - Method in class org.mockserver.client.ForwardChainExpectation
Return response when expectation is matched
respond(HttpTemplate) - Method in class org.mockserver.client.ForwardChainExpectation
Evaluate Velocity or JavaScript template to generate response to return when expectation is matched
respond(HttpClassCallback) - Method in class org.mockserver.client.ForwardChainExpectation
Call method on local class in same JVM implementing ExpectationResponseCallback to generate response to return when expectation is matched
respond(ExpectationResponseCallback) - Method in class org.mockserver.client.ForwardChainExpectation
Call method on object locally or remotely (over web socket) to generate response to return when expectation is matched
respond(ExpectationResponseCallback, Delay) - Method in class org.mockserver.client.ForwardChainExpectation
Call method on object locally or remotely (over web socket) to generate response to return when expectation is matched
retrieveActiveExpectations(HttpRequest) - Method in class org.mockserver.client.MockServerClient
Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
retrieveActiveExpectations(HttpRequest, Format) - Method in class org.mockserver.client.MockServerClient
Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
retrieveLogMessages(HttpRequest) - Method in class org.mockserver.client.MockServerClient
Retrieve the logs associated to a specific requests, this shows all logs for expectation matching, verification, clearing, etc
retrieveLogMessagesArray(HttpRequest) - Method in class org.mockserver.client.MockServerClient
Retrieve the logs associated to a specific requests, this shows all logs for expectation matching, verification, clearing, etc
retrieveRecordedExpectations(HttpRequest) - Method in class org.mockserver.client.MockServerClient
Retrieve the request-response combinations that have been recorded as a list of expectations, only those that match the httpRequest parameter are returned, use null to retrieve all requests
retrieveRecordedExpectations(HttpRequest, Format) - Method in class org.mockserver.client.MockServerClient
Retrieve the request-response combinations that have been recorded as a list of expectations, only those that match the httpRequest parameter are returned, use null to retrieve all requests
retrieveRecordedRequests(HttpRequest) - Method in class org.mockserver.client.MockServerClient
Retrieve the recorded requests that match the httpRequest parameter, use null for the parameter to retrieve all requests
retrieveRecordedRequests(HttpRequest, Format) - Method in class org.mockserver.client.MockServerClient
Retrieve the recorded requests that match the httpRequest parameter, use null for the parameter to retrieve all requests
retrieveRecordedRequestsAndResponses(HttpRequest) - Method in class org.mockserver.client.MockServerClient
Retrieve the recorded requests and responses that match the httpRequest parameter, use null for the parameter to retrieve all requests and responses
retrieveRecordedRequestsAndResponses(HttpRequest, Format) - Method in class org.mockserver.client.MockServerClient
Retrieve the recorded requests that match the httpRequest parameter, use null for the parameter to retrieve all requests

S

sendExpectation(Expectation...) - Method in class org.mockserver.client.MockServerClient
Specify one or more expectations, normally this method should not be used directly instead the when(...) and response(...) or forward(...) or error(...) methods should be used for example:
stop() - Method in class org.mockserver.client.MockServerClient
Stop MockServer gracefully (only support for Netty version, not supported for WAR version)
stop(boolean) - Method in class org.mockserver.client.MockServerClient
Stop MockServer gracefully (only support for Netty version, not supported for WAR version)
stopAsync() - Method in class org.mockserver.client.MockServerClient
Stop MockServer gracefully (only support for Netty version, not supported for WAR version)

V

verify(HttpRequest...) - Method in class org.mockserver.client.MockServerClient
Verify a list of requests have been sent in the order specified for example:
verify(HttpRequest, VerificationTimes) - Method in class org.mockserver.client.MockServerClient
Verify a request has been sent for example:
verifyZeroInteractions() - Method in class org.mockserver.client.MockServerClient
Verify no requests have been have been sent.

W

when(HttpRequest) - Method in class org.mockserver.client.MockServerClient
Specify an unlimited expectation that will respond regardless of the number of matching http for example:
when(HttpRequest, Times) - Method in class org.mockserver.client.MockServerClient
Specify an limited expectation that will respond a specified number of times when the http is matched for example:
when(HttpRequest, Times, TimeToLive) - Method in class org.mockserver.client.MockServerClient
Specify an limited expectation that will respond a specified number of times when the http is matched for example:
withSecure(boolean) - Method in class org.mockserver.client.MockServerClient
 
B C E F I M O P R S V W 
Skip navigation links

Copyright © 2019. All rights reserved.