- canExpire() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
-
- capturingBodyIn(BodyCapture<?>) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for adding a
BodyCapture to the expectation for later assertions/debugging.
- certAlias(String) - Method in class com.github.restdriver.clientdriver.SecureClientDriverFactory
-
Sets the certificate alias.
- checkForUnexpectedRequests() - Method in interface com.github.restdriver.clientdriver.jetty.ClientDriverJettyHandler
-
This method will throw a ClientDriverFailedExpectationException if there have been any unexpected requests.
- checkForUnexpectedRequests() - Method in class com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler
-
- checkForUnmatchedExpectations() - Method in interface com.github.restdriver.clientdriver.jetty.ClientDriverJettyHandler
-
This method will throw a ClientDriverFailedExpectationException if any expectations have not been met.
- checkForUnmatchedExpectations() - Method in class com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler
-
- ClientDriver - Class in com.github.restdriver.clientdriver
-
The main class which acts as a facade for the Client Driver.
- ClientDriver(ClientDriverJettyHandler) - Constructor for class com.github.restdriver.clientdriver.ClientDriver
-
Constructor.
- ClientDriver(ClientDriverJettyHandler, int) - Constructor for class com.github.restdriver.clientdriver.ClientDriver
-
Constructor.
- ClientDriver() - Constructor for class com.github.restdriver.clientdriver.ClientDriver
-
Convenience constructor for extending classes.
- ClientDriverCompletedListener - Class in com.github.restdriver.clientdriver
-
A listener to be used when the Client Driver has completed execution.
- ClientDriverCompletedListener() - Constructor for class com.github.restdriver.clientdriver.ClientDriverCompletedListener
-
- ClientDriverExpectation - Class in com.github.restdriver.clientdriver
-
An expectation made within the client driver.
- ClientDriverExpectation(ClientDriverRequestResponsePair) - Constructor for class com.github.restdriver.clientdriver.ClientDriverExpectation
-
Creates a new expectation instance.
- ClientDriverFactory - Class in com.github.restdriver.clientdriver
-
Main entry point to the Rest Client Driver.
- ClientDriverFactory() - Constructor for class com.github.restdriver.clientdriver.ClientDriverFactory
-
- ClientDriverFailedExpectationException - Exception in com.github.restdriver.clientdriver.exception
-
Runtime exception which is thrown when the client driver's expectations fail.
- ClientDriverFailedExpectationException(List<HttpRealRequest>, List<ClientDriverExpectation>) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverFailedExpectationException
-
- ClientDriverFailedExpectationException(List<ClientDriverExpectation>) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverFailedExpectationException
-
- ClientDriverInternalException - Exception in com.github.restdriver.clientdriver.exception
-
Runtime exception thrown when the client driver cannot start for whatever reason.
- ClientDriverInternalException(String, Throwable) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverInternalException
-
Constructor.
- ClientDriverInvalidExpectationException - Exception in com.github.restdriver.clientdriver.exception
-
Exception which is thrown when an expectation is invalid.
- ClientDriverInvalidExpectationException(String) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverInvalidExpectationException
-
Creates a new instance of the exception.
- ClientDriverJettyHandler - Interface in com.github.restdriver.clientdriver.jetty
-
Interface for classes which handle incoming HTTP requests in the Client Driver.
- ClientDriverListener - Interface in com.github.restdriver.clientdriver
-
Interface for classes which listen to the Client Driver.
- ClientDriverRequest - Class in com.github.restdriver.clientdriver
-
Class for encapsulating an HTTP request.
- ClientDriverRequest(Matcher<? extends String>) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRequest
-
Constructor taking String matcher.
- ClientDriverRequest(String) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRequest
-
Constructor taking String.
- ClientDriverRequest(Pattern) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRequest
-
Constructor taking Pattern.
- ClientDriverRequest.Method - Class in com.github.restdriver.clientdriver
-
Class that represents an HTTP method.
- ClientDriverRequestResponsePair - Class in com.github.restdriver.clientdriver
-
Pairs an expected request with its response.
- ClientDriverRequestResponsePair(ClientDriverRequest, ClientDriverResponse) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRequestResponsePair
-
Constructor.
- ClientDriverResponse - Class in com.github.restdriver.clientdriver
-
Class for encapsulating an HTTP response.
- ClientDriverResponse() - Constructor for class com.github.restdriver.clientdriver.ClientDriverResponse
-
Creates a new response with an empty body, a status code of 204 and
no Content-Type.
- ClientDriverResponse(String) - Constructor for class com.github.restdriver.clientdriver.ClientDriverResponse
-
- ClientDriverResponse(String, String) - Constructor for class com.github.restdriver.clientdriver.ClientDriverResponse
-
Creates a new response with the given body, a suitable default status
code and a given content-type.
- ClientDriverResponse(InputStream, String) - Constructor for class com.github.restdriver.clientdriver.ClientDriverResponse
-
Creates a new response with the given body, a suitable default status
code and a given content-type.
- ClientDriverResponseCreationException - Exception in com.github.restdriver.clientdriver.exception
-
Runtime exception thrown when the client driver response cannot be created
- ClientDriverResponseCreationException(String, Throwable) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverResponseCreationException
-
Constructor.
- ClientDriverRule - Class in com.github.restdriver.clientdriver
-
The ClientDriverRule allows a user to specify expectations on the HTTP requests that are made against it.
- ClientDriverRule() - Constructor for class com.github.restdriver.clientdriver.ClientDriverRule
-
Creates a new rule with a driver running on a free port.
- ClientDriverRule(int) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRule
-
Creates a new rule with a driver running on the specified port.
- ClientDriverRule(ClientDriver) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRule
-
- ClientDriverSetupException - Exception in com.github.restdriver.clientdriver.exception
-
Runtime exception which is thrown for a variety of causes from the Client Driver.
- ClientDriverSetupException(String, Throwable) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverSetupException
-
Constructor.
- ClientDriverUnitTest - Class in com.github.restdriver.clientdriver.example
-
- ClientDriverUnitTest() - Constructor for class com.github.restdriver.clientdriver.example.ClientDriverUnitTest
-
Deprecated.
- com.github.restdriver.clientdriver - package com.github.restdriver.clientdriver
-
- com.github.restdriver.clientdriver.capture - package com.github.restdriver.clientdriver.capture
-
- com.github.restdriver.clientdriver.example - package com.github.restdriver.clientdriver.example
-
- com.github.restdriver.clientdriver.exception - package com.github.restdriver.clientdriver.exception
-
- com.github.restdriver.clientdriver.jetty - package com.github.restdriver.clientdriver.jetty
-
- createAndStartJetty(int) - Method in class com.github.restdriver.clientdriver.ClientDriver
-
- createClientDriver() - Method in class com.github.restdriver.clientdriver.ClientDriverFactory
-
- createClientDriver(int) - Method in class com.github.restdriver.clientdriver.ClientDriverFactory
-
Factory method to create and start a
ClientDriver on a specific port.
- createClientDriver(KeyStore, String, String) - Method in class com.github.restdriver.clientdriver.SecureClientDriverFactory
-
Factory method to create and start ClientDriver.
- createClientDriver(int, KeyStore, String, String) - Method in class com.github.restdriver.clientdriver.SecureClientDriverFactory
-
Factory method to create and start a ClientDriver on a specific port.
- createConnector(Server, int) - Method in class com.github.restdriver.clientdriver.ClientDriver
-
- custom(String) - Static method in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
-
Create a arbitrary HTTP method, for example PATCH, CONNECT, PROPFIND.
- waitFor(BodyCapture<?>, long, TimeUnit) - Static method in class com.github.restdriver.clientdriver.RestClientDriver
-
Waits for specified time for populated
BodyCapture object.
- whenCompleted(ClientDriverListener) - Method in class com.github.restdriver.clientdriver.ClientDriverRule
-
The given listener will be registered with the Client Driver and executes once execution has
completed.
- whenMatched(MatchedRequestHandler) - Method in class com.github.restdriver.clientdriver.ClientDriverExpectation
-
When a call is matched call a handler
- withAnyParams() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting any number of querystring parameters with any values.
- withBasicAuth(String, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
- withBody(String, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting body content and type, where content is in the form of a String and type is in the form of a
String.
- withBody(String, Pattern) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting body content and type, where content is in the form of a String and type is in the form of a
Pattern.
- withBody(Pattern, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting body content and type, where content is in the form of a Pattern and type is in the form of
a String.
- withBody(Pattern, Pattern) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting body content and type, where content is in the form of a Pattern and type is in the form of
a Pattern.
- withBody(Matcher<? extends String>, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting body content and type, where content is in the form of a Matcher and type is in the form of
a Pattern.
- withContentType(String) - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
-
- withHeader(String, Matcher<? extends String>) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting a specific header name and value matcher.
- withHeader(String, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting a specific header name and value pair.
- withHeader(String, Pattern) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting a specific header name and value pair, where value is in the form of a Pattern.
- withHeader(String, String) - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
-
Set headers on the response.
- withHeaders(Map<String, Object>) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting a map of header name and value pairs.
- within(long, TimeUnit) - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
-
Sets the amount of time to allow this response to match within.
- withMethod(ClientDriverRequest.Method) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
- withoutHeader(String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting a specific header name not to be present on the request.
- withParam(String, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting query-string parameters on the end of the url.
- withParam(String, int) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting query-string parameters on the end of the url.
- withParam(String, long) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting query-string parameters on the end of the url.
- withParam(String, boolean) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting query-string parameters on the end of the url.
- withParam(String, Object) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting query-string parameters on the end of the url.
- withParam(String, Pattern) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting query-string parameters on the end of the url.
- withParam(String, Matcher<? extends String>) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting query-string parameters on the end of the url.
- withParams(Map<String, Object>) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
-
Setter for expecting multiple query-string parameters on the end of the url.
- withStatus(int) - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
-