A C D E F H I L M N O P R S V W

A

AbstractClient - Class in org.mockserver.client
 
AbstractClient(String, int, String) - Constructor for class org.mockserver.client.AbstractClient
Start the client communicating to the proxy at the specified host and port and contextPath for example: ProxyClient mockServerClient = new ProxyClient("localhost", 1080, "/proxy");

C

calculatePath(String) - Method in class org.mockserver.client.AbstractClient
 
callback(HttpCallback) - Method in class org.mockserver.client.server.ForwardChainExpectation
 
clear(HttpRequest) - Method in class org.mockserver.client.proxy.ProxyClient
Clear all recorded requests that match the httpRequest parameter
clear(HttpRequest) - Method in class org.mockserver.client.server.MockServerClient
Clear all expectations that match the http
ClientException - Exception in org.mockserver.client.server
 
ClientException(String, Throwable) - Constructor for exception org.mockserver.client.server.ClientException
 
ClientException(String) - Constructor for exception org.mockserver.client.server.ClientException
 
contextPath - Variable in class org.mockserver.client.AbstractClient
 

D

dumpToLog() - Method in class org.mockserver.client.server.MockServerClient
Pretty-print the json for all expectations to the log.
dumpToLog(HttpRequest) - Method in class org.mockserver.client.server.MockServerClient
Pretty-print the json for all expectations that match the request to the log.
dumpToLogAsJava() - Method in class org.mockserver.client.proxy.ProxyClient
Output Java code for creating all requests / responses as Expectations to the log.
dumpToLogAsJava(HttpRequest) - Method in class org.mockserver.client.proxy.ProxyClient
Output Java code for creating matching requests and their responses as Expectations to the log.
dumpToLogAsJSON() - Method in class org.mockserver.client.proxy.ProxyClient
Pretty-print the json for all requests / responses as Expectations to the log.
dumpToLogAsJSON(HttpRequest) - Method in class org.mockserver.client.proxy.ProxyClient
Pretty-print the json for matching requests and their responses as Expectations to the log.

E

error(HttpError) - Method in class org.mockserver.client.server.ForwardChainExpectation
 
ExpectationInitializer - Interface in org.mockserver.initialize
 
expectationSerializer - Variable in class org.mockserver.client.AbstractClient
 

F

formatErrorMessage(String, Object...) - Method in class org.mockserver.client.AbstractClient
 
forward(HttpForward) - Method in class org.mockserver.client.server.ForwardChainExpectation
 
ForwardChainExpectation - Class in org.mockserver.client.server
 
ForwardChainExpectation(MockServerClient, Expectation) - Constructor for class org.mockserver.client.server.ForwardChainExpectation
 

H

host - Variable in class org.mockserver.client.AbstractClient
 
httpRequestSerializer - Variable in class org.mockserver.client.AbstractClient
 

I

initializeExpectations(MockServerClient) - Method in interface org.mockserver.initialize.ExpectationInitializer
 
isRunning() - Method in class org.mockserver.client.proxy.ProxyClient
Returns whether the proxy is running
isRunning() - Method in class org.mockserver.client.server.MockServerClient
Returns whether MockServer is running

L

logger - Variable in class org.mockserver.client.AbstractClient
 

M

MockServerClient - Class in org.mockserver.client.server
 
MockServerClient(String, int) - Constructor for class org.mockserver.client.server.MockServerClient
Start the client communicating to a MockServer at the specified host and port for example: MockServerClient mockServerClient = new MockServerClient("localhost", 1080);
MockServerClient(String, int, String) - Constructor for class org.mockserver.client.server.MockServerClient
Start the client communicating to a MockServer at the specified host and port and contextPath for example: MockServerClient mockServerClient = new MockServerClient("localhost", 1080, "/mockserver");

N

nettyHttpClient - Variable in class org.mockserver.client.AbstractClient
 

O

org.mockserver.client - package org.mockserver.client
 
org.mockserver.client.proxy - package org.mockserver.client.proxy
 
org.mockserver.client.server - package org.mockserver.client.server
 
org.mockserver.initialize - package org.mockserver.initialize
 

P

port - Variable in class org.mockserver.client.AbstractClient
 
ProxyClient - Class in org.mockserver.client.proxy
 
ProxyClient(String, int) - Constructor for class org.mockserver.client.proxy.ProxyClient
Start the client communicating to a the proxy at the specified host and port for example: ProxyClient mockServerClient = new ProxyClient("localhost", 1080);
ProxyClient(String, int, String) - Constructor for class org.mockserver.client.proxy.ProxyClient
Start the client communicating to the proxy at the specified host and port and contextPath for example: ProxyClient mockServerClient = new ProxyClient("localhost", 1080, "/proxy");

R

reset() - Method in class org.mockserver.client.proxy.ProxyClient
Reset the proxy by clearing recorded requests
reset() - Method in class org.mockserver.client.server.MockServerClient
Reset MockServer by clearing all expectations
respond(HttpResponse) - Method in class org.mockserver.client.server.ForwardChainExpectation
 
retrieveAsExpectations(HttpRequest) - Method in class org.mockserver.client.proxy.ProxyClient
Retrieve the recorded requests that match the httpRequest parameter as expectations, use null for the parameter to retrieve all requests
retrieveAsJSON(HttpRequest) - Method in class org.mockserver.client.proxy.ProxyClient
Retrieve the recorded requests that match the httpRequest parameter as a JSON array, use null for the parameter to retrieve all requests
retrieveExistingExpectations(HttpRequest) - Method in class org.mockserver.client.server.MockServerClient
Retrieve the already setup expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
retrieveRecordedRequests(HttpRequest) - Method in class org.mockserver.client.server.MockServerClient
Retrieve the recorded requests that match the httpRequest parameter, use null for the parameter to retrieve all requests

S

sendRequest(HttpRequest) - Method in class org.mockserver.client.AbstractClient
 
stop() - Method in class org.mockserver.client.proxy.ProxyClient
Stop the proxy gracefully (only support for Netty and Vert.X versions, not supported for WAR version)
stop(boolean) - Method in class org.mockserver.client.proxy.ProxyClient
 
stop() - Method in class org.mockserver.client.server.MockServerClient
Stop MockServer gracefully (only support for Netty and Vert.X versions, not supported for WAR version)
stop(boolean) - Method in class org.mockserver.client.server.MockServerClient
 

V

verificationSequenceSerializer - Variable in class org.mockserver.client.AbstractClient
 
verificationSerializer - Variable in class org.mockserver.client.AbstractClient
 
verify(HttpRequest...) - Method in class org.mockserver.client.proxy.ProxyClient
Verify a list of requests have been sent in the order specified for example: mockServerClient .verify( request() .withPath("/first_request") .withBody("some_request_body"), request() .withPath("/second_request") .withBody("some_request_body") );
verify(HttpRequest, VerificationTimes) - Method in class org.mockserver.client.proxy.ProxyClient
Verify a request has been sent for example: mockServerClient .verify( request() .withPath("/some_path") .withBody("some_request_body"), VerificationTimes.exactly(3) ); VerificationTimes supports multiple static factory methods: once() - verify the request was only received once exactly(n) - verify the request was only received exactly n times atLeast(n) - verify the request was only received at least n times
verify(HttpRequest...) - Method in class org.mockserver.client.server.MockServerClient
Verify a list of requests have been sent in the order specified for example: mockServerClient .verify( request() .withPath("/first_request") .withBody("some_request_body"), request() .withPath("/second_request") .withBody("some_request_body") );
verify(HttpRequest, VerificationTimes) - Method in class org.mockserver.client.server.MockServerClient
Verify a request has been sent for example: mockServerClient .verify( request() .withPath("/some_path") .withBody("some_request_body"), VerificationTimes.exactly(3) ); VerificationTimes supports multiple static factory methods: once() - verify the request was only received once exactly(n) - verify the request was only received exactly n times atLeast(n) - verify the request was only received at least n times
verifyZeroInteractions() - Method in class org.mockserver.client.server.MockServerClient
Verify no requests have been have been sent.

W

when(HttpRequest) - Method in class org.mockserver.client.server.MockServerClient
Specify an unlimited expectation that will respond regardless of the number of matching http for example: mockServerClient .when( request() .withPath("/some_path") .withBody("some_request_body") ) .respond( response() .withBody("some_response_body") .withHeaders( new Header("responseName", "responseValue") ) );
when(HttpRequest, Times) - Method in class org.mockserver.client.server.MockServerClient
Specify an limited expectation that will respond a specified number of times when the http is matched for example: mockServerClient .when( new HttpRequest() .withPath("/some_path") .withBody("some_request_body"), Times.exactly(5) ) .respond( new HttpResponse() .withBody("some_response_body") .withHeaders( new Header("responseName", "responseValue") ) );
when(HttpRequest, Times, TimeToLive) - Method in class org.mockserver.client.server.MockServerClient
Specify an limited expectation that will respond a specified number of times when the http is matched for example: mockServerClient .when( new HttpRequest() .withPath("/some_path") .withBody("some_request_body"), Times.exactly(5), TimeToLive.exactly(TimeUnit.SECONDS, 120), ) .respond( new HttpResponse() .withBody("some_response_body") .withHeaders( new Header("responseName", "responseValue") ) );

A C D E F H I L M N O P R S V W

Copyright © 2015. All rights reserved.