A B C D E F G H L M N O P Q R S T U V W 

A

AbstractHttpRequestMatchingFilter - Class in com.github.kristofa.test.http
Abstract HttpRequestMatchingFilter implementation which is able to deal with setting and returning next HttpRequestMatchingFilter in chain.
AbstractHttpRequestMatchingFilter() - Constructor for class com.github.kristofa.test.http.AbstractHttpRequestMatchingFilter
 
AbstractHttpResponseProvider - Class in com.github.kristofa.test.http
Abstract HttpResponseProvider that contains the following functionality: Exactly matching HttpRequests In case of non exact match use submitted HttpRequestMatchingFilter to perform matching. Support multiple times the same request with potentially different responses that are returned in a fixed order.
AbstractHttpResponseProvider() - Constructor for class com.github.kristofa.test.http.AbstractHttpResponseProvider
 
addExpected(HttpRequest, HttpResponseProxy) - Method in class com.github.kristofa.test.http.AbstractHttpResponseProvider
Adds an expected HttpRequest and response proxy combination.
addForwardHttpRequestBuilder(ForwardHttpRequestBuilder) - Method in class com.github.kristofa.test.http.MockAndProxyFacade.Builder
Adds a ForwardHttpRequestBuilder that will be used with LoggingHttpProxy.
addHttpRequestMatchingFilter(HttpRequestMatchingFilter) - Method in class com.github.kristofa.test.http.AbstractHttpResponseProvider
AllExceptContentTypeHeaderFilter - Class in com.github.kristofa.test.http
HttpRequestMatchingFilter that will remove all http headers except Content-Type from original and other http request.
AllExceptContentTypeHeaderFilter() - Constructor for class com.github.kristofa.test.http.AllExceptContentTypeHeaderFilter
 
AllExceptOriginalHeadersFilter - Class in com.github.kristofa.test.http
HttpRequestMatchingFilter that will remove http headers in 'other request' with given key in case headers with same key are not present in original request.
AllExceptOriginalHeadersFilter() - Constructor for class com.github.kristofa.test.http.AllExceptOriginalHeadersFilter
 
ApacheHttpClientImpl - Class in com.github.kristofa.test.http.client
HttpClient implementation that uses Apache HTTP client as 'lower level' library.
ApacheHttpClientImpl() - Constructor for class com.github.kristofa.test.http.client.ApacheHttpClientImpl
 

B

build() - Method in class com.github.kristofa.test.http.MockAndProxyFacade.Builder
 

C

close() - Method in interface com.github.kristofa.test.http.client.HttpClientResponse
Closes all resources related to this request/response.
com.github.kristofa.test.http - package com.github.kristofa.test.http
 
com.github.kristofa.test.http.client - package com.github.kristofa.test.http.client
Defines a HttpClient interface and an implementation that adapts to using the Apache HttpClient.
com.github.kristofa.test.http.file - package com.github.kristofa.test.http.file
Provides implementations for storing http request/responses to disk using LoggingHttpProxy and replaying them using MockHttpServer.
compareTo(HttpMessageHeader) - Method in class com.github.kristofa.test.http.HttpMessageHeader
compareTo(QueryParameter) - Method in class com.github.kristofa.test.http.QueryParameter
consume() - Method in class com.github.kristofa.test.http.DefaultHttpResponseProxy
 
consume() - Method in interface com.github.kristofa.test.http.HttpResponseProxy
Consumes HttpResponse.
consumed() - Method in class com.github.kristofa.test.http.DefaultHttpResponseProxy
 
consumed() - Method in interface com.github.kristofa.test.http.HttpResponseProxy
Indicates if the HttpResponse has already been consumed.
content(byte[]) - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Sets content of message body for request.
content(byte[]) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Sets content of message body for request.
ContentMatcher - Class in com.github.kristofa.test.http
The content of a HttpRequest or response can be structured data like JSON / XML.
ContentMatcher() - Constructor for class com.github.kristofa.test.http.ContentMatcher
 
contentMatcher(ContentMatcher) - Method in class com.github.kristofa.test.http.HttpRequestImpl
copy() - Method in class com.github.kristofa.test.http.ContentMatcher
Create a copy of this ContentProxy.

D

DefaultHttpResponseProvider - Class in com.github.kristofa.test.http
A HttpResponseProvider that supports http request with all properties.
DefaultHttpResponseProvider(boolean) - Constructor for class com.github.kristofa.test.http.DefaultHttpResponseProvider
Creates a new instance.
DefaultHttpResponseProxy - Class in com.github.kristofa.test.http
 
DefaultHttpResponseProxy(HttpResponse) - Constructor for class com.github.kristofa.test.http.DefaultHttpResponseProxy
 
DELETE - Static variable in class com.github.kristofa.test.http.MockHttpServer
 
domain(String) - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Sets host for request.

E

equals(Object) - Method in class com.github.kristofa.test.http.ContentMatcher
equals(Object) - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
equals(Object) - Method in class com.github.kristofa.test.http.HttpMessageHeader
equals(Object) - Method in class com.github.kristofa.test.http.HttpRequestImpl
equals(Object) - Method in class com.github.kristofa.test.http.HttpResponseImpl
equals(Object) - Method in class com.github.kristofa.test.http.QueryParameter
execute(FullHttpRequest) - Method in class com.github.kristofa.test.http.client.ApacheHttpClientImpl
Executes a HTTP request and returns response.
execute(FullHttpRequest) - Method in interface com.github.kristofa.test.http.client.HttpClient
Executes a HTTP request and returns response.
expect(Method, String, String, String) - Method in class com.github.kristofa.test.http.SimpleHttpResponseProvider
Provide an expected request with content.
expect(Method, String) - Method in class com.github.kristofa.test.http.SimpleHttpResponseProvider
Provide an expected request without content.

F

FileHttpResponseProvider - Class in com.github.kristofa.test.http.file
HttpResponseProvider that is able to serve responses for requests/responses previously saved by HttpRequestResponseFileLogger.
FileHttpResponseProvider(String, String) - Constructor for class com.github.kristofa.test.http.file.FileHttpResponseProvider
Creates a new instance.
FileHttpResponseProvider(String, String, HttpRequestFileReader, HttpResponseFileReader) - Constructor for class com.github.kristofa.test.http.file.FileHttpResponseProvider
Creates a new instance.
filter(HttpRequestMatchingContext) - Method in class com.github.kristofa.test.http.AllExceptContentTypeHeaderFilter
Filter/transform input http requests and response if needed.
filter(HttpRequestMatchingContext) - Method in class com.github.kristofa.test.http.AllExceptOriginalHeadersFilter
Filter/transform input http requests and response if needed.
filter(HttpRequestMatchingContext) - Method in interface com.github.kristofa.test.http.HttpRequestMatchingFilter
Filter/transform input http requests and response if needed.
ForwardHttpRequestBuilder - Interface in com.github.kristofa.test.http
Responsible for building forwarding http requests.
FullHttpRequest - Interface in com.github.kristofa.test.http
A Full HTTP Request extends a HttpRequest with domain (host), port.
FullHttpRequestImpl - Class in com.github.kristofa.test.http
Represents a HTTP request.
FullHttpRequestImpl() - Constructor for class com.github.kristofa.test.http.FullHttpRequestImpl
Creates a new HTTP request object with no parameters set.
FullHttpRequestImpl(FullHttpRequest) - Constructor for class com.github.kristofa.test.http.FullHttpRequestImpl
Copy constructor.

G

GET - Static variable in class com.github.kristofa.test.http.MockHttpServer
 
getContent() - Method in class com.github.kristofa.test.http.ContentMatcher
Gets content.
getContent() - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Get content for request.
getContent() - Method in interface com.github.kristofa.test.http.HttpRequest
Get content for request.
getContent() - Method in class com.github.kristofa.test.http.HttpRequestImpl
Get content for request.
getContent() - Method in interface com.github.kristofa.test.http.HttpResponse
Get response content.
getContent() - Method in class com.github.kristofa.test.http.HttpResponseImpl
Get response content.
getContentType() - Method in interface com.github.kristofa.test.http.client.HttpClientResponse
Get Content-Type.
getContentType() - Method in interface com.github.kristofa.test.http.HttpResponse
Get content type.
getContentType() - Method in class com.github.kristofa.test.http.HttpResponseImpl
Get content type.
getDomain() - Method in interface com.github.kristofa.test.http.FullHttpRequest
Gets domain / host for request.
getDomain() - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Gets domain / host for request.
getErrorMessage() - Method in interface com.github.kristofa.test.http.client.HttpClientResponse
In case request failed this will return the error message.
GetException - Exception in com.github.kristofa.test.http.client
Exception that indicates that a HTTP GET request failed.
GetException(Throwable) - Constructor for exception com.github.kristofa.test.http.client.GetException
Create a new exception instance.
getForwardRequest(FullHttpRequest) - Method in interface com.github.kristofa.test.http.ForwardHttpRequestBuilder
Builds a forward request for given input request.
getForwardRequest(FullHttpRequest) - Method in class com.github.kristofa.test.http.PassthroughForwardHttpRequestBuilder
 
getHttpCode() - Method in interface com.github.kristofa.test.http.client.HttpClientResponse
Gets the HTTP return code.
getHttpCode() - Method in interface com.github.kristofa.test.http.HttpResponse
Gets a HTTP response code.
getHttpCode() - Method in class com.github.kristofa.test.http.HttpResponseImpl
Gets a HTTP response code.
getHttpMessageHeaders() - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Get http message headers.
getHttpMessageHeaders(String) - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Get http message headers with given name/key.
getHttpMessageHeaders() - Method in interface com.github.kristofa.test.http.HttpRequest
Get http message headers.
getHttpMessageHeaders(String) - Method in interface com.github.kristofa.test.http.HttpRequest
Get http message headers with given name/key.
getHttpMessageHeaders() - Method in class com.github.kristofa.test.http.HttpRequestImpl
Get http message headers.
getHttpMessageHeaders(String) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Get http message headers with given name/key.
getHttpRequestResponseLogger() - Method in class com.github.kristofa.test.http.file.HttpRequestResponseFileLoggerFactory
getHttpRequestResponseLogger() - Method in interface com.github.kristofa.test.http.HttpRequestResponseLoggerFactory
getKey() - Method in class com.github.kristofa.test.http.QueryParameter
Gets key.
getMethod() - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Gets method for request.
getMethod() - Method in interface com.github.kristofa.test.http.HttpRequest
Gets method for request.
getMethod() - Method in class com.github.kristofa.test.http.HttpRequestImpl
Gets method for request.
getMissingHttpRequests() - Method in exception com.github.kristofa.test.http.UnsatisfiedExpectationException
Gets the http requests that we expected but did not get.
getName() - Method in class com.github.kristofa.test.http.HttpMessageHeader
Get header entry name.
getPath() - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Gets path for request without query parameters.
getPath() - Method in interface com.github.kristofa.test.http.HttpRequest
Gets path for request without query parameters.
getPath() - Method in class com.github.kristofa.test.http.HttpRequestImpl
Gets path for request without query parameters.
getPort() - Method in interface com.github.kristofa.test.http.FullHttpRequest
Gets port for request.
getPort() - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Gets port for request.
getPort() - Method in class com.github.kristofa.test.http.MockHttpServer
Return the port used by the server.
getQueryParameters() - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Gets query parameters for request.
getQueryParameters(String) - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Gets query parameters with given key.
getQueryParameters() - Method in interface com.github.kristofa.test.http.HttpRequest
Gets query parameters for request.
getQueryParameters(String) - Method in interface com.github.kristofa.test.http.HttpRequest
Gets query parameters with given key.
getQueryParameters() - Method in class com.github.kristofa.test.http.HttpRequestImpl
Gets query parameters for request.
getQueryParameters(String) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Gets query parameters with given key.
getResponse(HttpRequest) - Method in class com.github.kristofa.test.http.AbstractHttpResponseProvider
Gets expected response for given request.
getResponse() - Method in class com.github.kristofa.test.http.DefaultHttpResponseProxy
 
getResponse(HttpRequest) - Method in interface com.github.kristofa.test.http.HttpResponseProvider
Gets expected response for given request.
getResponse() - Method in interface com.github.kristofa.test.http.HttpResponseProxy
Gets HttpResponse.
getResponseEntity() - Method in interface com.github.kristofa.test.http.client.HttpClientResponse
Gets response object as a result of executing http request.
getUnexpectedHttpRequests() - Method in exception com.github.kristofa.test.http.UnsatisfiedExpectationException
Gets the http requests that we got but did not expect.
getUrl() - Method in interface com.github.kristofa.test.http.FullHttpRequest
Gets the url for the http request, including query parameters if defined.
getUrl() - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Gets the url for the http request, including query parameters if defined.
getValue() - Method in class com.github.kristofa.test.http.HttpMessageHeader
Get header entry value.
getValue() - Method in enum com.github.kristofa.test.http.HttpMessageHeaderField
Gets text value of http message header field.
getValue() - Method in enum com.github.kristofa.test.http.MediaType
Get value of MediaType.
getValue() - Method in class com.github.kristofa.test.http.QueryParameter
Gets value for key.

H

handle(Request, Response) - Method in class com.github.kristofa.test.http.MockHttpServer.ExpectationHandler
 
hashCode() - Method in class com.github.kristofa.test.http.ContentMatcher
hashCode() - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
hashCode() - Method in class com.github.kristofa.test.http.HttpMessageHeader
hashCode() - Method in class com.github.kristofa.test.http.HttpRequestImpl
hashCode() - Method in class com.github.kristofa.test.http.HttpResponseImpl
hashCode() - Method in class com.github.kristofa.test.http.QueryParameter
HttpClient - Interface in com.github.kristofa.test.http.client
A higher level HTTP Client interface that abstracts the low level library that is being used.
HttpClientResponse<T> - Interface in com.github.kristofa.test.http.client
Http Response as being returned by a HttpClient.
httpMessageHeader(String, String) - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Adds a Http message header.
HttpMessageHeader - Class in com.github.kristofa.test.http
Represents http message header entry.
HttpMessageHeader(String, String) - Constructor for class com.github.kristofa.test.http.HttpMessageHeader
Create a new header entry instance.
httpMessageHeader(String, String) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Adds a Http message header.
HttpMessageHeaderField - Enum in com.github.kristofa.test.http
List of often used http message header fields.
HttpRequest - Interface in com.github.kristofa.test.http
Contains the HTTP request properties required to identify or compare a HTTP request.
HttpRequestException - Exception in com.github.kristofa.test.http.client
Exception that indicates that HttpRequest failed.
HttpRequestException(Throwable) - Constructor for exception com.github.kristofa.test.http.client.HttpRequestException
Creates a new instance.
HttpRequestException(String) - Constructor for exception com.github.kristofa.test.http.client.HttpRequestException
Creates a new instance.
HttpRequestFileWriter - Interface in com.github.kristofa.test.http.file
Writes a HttpRequest to file.
HttpRequestImpl - Class in com.github.kristofa.test.http
 
HttpRequestImpl() - Constructor for class com.github.kristofa.test.http.HttpRequestImpl
Creates a new unintialized instance.
HttpRequestImpl(HttpRequest) - Constructor for class com.github.kristofa.test.http.HttpRequestImpl
Copy constructor.
HttpRequestMatchingContext - Interface in com.github.kristofa.test.http
Context for matching a http request.
HttpRequestMatchingContextImpl - Class in com.github.kristofa.test.http
HttpRequestMatchingContextImpl(HttpRequest, HttpRequest, HttpResponse) - Constructor for class com.github.kristofa.test.http.HttpRequestMatchingContextImpl
Create a new instance.
HttpRequestMatchingFilter - Interface in com.github.kristofa.test.http
A HttpRequestMatchingFilter contains logic to deal with expected differences between 2 requests and brings them in-line so that they can potentially match.
HttpRequestResponseFileLoggerFactory - Class in com.github.kristofa.test.http.file
Factory that creates HttpRequestResponseFileLogger instances.
HttpRequestResponseFileLoggerFactory(String, String) - Constructor for class com.github.kristofa.test.http.file.HttpRequestResponseFileLoggerFactory
Creates a new instance.
HttpRequestResponseFileLoggerFactory(String, String, boolean) - Constructor for class com.github.kristofa.test.http.file.HttpRequestResponseFileLoggerFactory
Creates a new instance.
HttpRequestResponseLogger - Interface in com.github.kristofa.test.http
Logs a HttpRequest / HttpResponse combination.
HttpRequestResponseLoggerFactory - Interface in com.github.kristofa.test.http
Responsible for creating HttpRequestResponseLogger instances.
httpRequestResponseLoggerFactory(HttpRequestResponseLoggerFactory) - Method in class com.github.kristofa.test.http.MockAndProxyFacade.Builder
Sets the HttpRequestResponseLoggerFactory that will be used with LoggingHttpProxy.
HttpResponse - Interface in com.github.kristofa.test.http
HTTP response.
HttpResponseFileReader - Interface in com.github.kristofa.test.http.file
Reads a HttpResponse from file and reconstructs it.
HttpResponseFileWriter - Interface in com.github.kristofa.test.http.file
Writes a HttpResponse to file.
HttpResponseImpl - Class in com.github.kristofa.test.http
HttpResponse implementation.
HttpResponseImpl(int, String, byte[]) - Constructor for class com.github.kristofa.test.http.HttpResponseImpl
Creates a new instance.
HttpResponseProvider - Interface in com.github.kristofa.test.http
Provides responses for given http requests.
httpResponseProvider(HttpResponseProvider) - Method in class com.github.kristofa.test.http.MockAndProxyFacade.Builder
Sets the HttpResponseProvider that will be used for MockHttpServer.
HttpResponseProxy - Interface in com.github.kristofa.test.http
Http responses can be large and they are only needed when the corresponding http request matched.

L

lazyInitializeExpectedRequestsAndResponses() - Method in class com.github.kristofa.test.http.AbstractHttpResponseProvider
Override this method if you want to lazily initialize requests/responses.
lazyInitializeExpectedRequestsAndResponses() - Method in class com.github.kristofa.test.http.file.FileHttpResponseProvider
Override this method if you want to lazily initialize requests/responses.
log(HttpRequest) - Method in interface com.github.kristofa.test.http.HttpRequestResponseLogger
Logs a HttpRequest.
log(HttpResponse) - Method in interface com.github.kristofa.test.http.HttpRequestResponseLogger
LoggingHttpProxy - Class in com.github.kristofa.test.http
Http proxy that supports logging requests/reponses.
LoggingHttpProxy(int, Collection<ForwardHttpRequestBuilder>, HttpRequestResponseLoggerFactory) - Constructor for class com.github.kristofa.test.http.LoggingHttpProxy
Create a new instance.

M

MediaType - Enum in com.github.kristofa.test.http
The media type is the value of Content-Type http message header and is defined of 2 or more parts.
method(Method) - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Sets method for request.
method(Method) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Sets method for request.
Method - Enum in com.github.kristofa.test.http
Defines http methods.
MockAndProxyFacade - Class in com.github.kristofa.test.http
Facade that lets you easily configure and use either the LoggingHttpProxy for using real services and logging requests/responses or the MockHttpServer for running your code against mocked http requests/responses.
MockAndProxyFacade.Builder - Class in com.github.kristofa.test.http
 
MockAndProxyFacade.Builder() - Constructor for class com.github.kristofa.test.http.MockAndProxyFacade.Builder
 
MockAndProxyFacade.Mode - Enum in com.github.kristofa.test.http
Specifies the mode in which MockAndProxyFacade should be operating.
MockHttpServer - Class in com.github.kristofa.test.http
Mock Http Server which can be used to return upfront defined responses for a set of http requests.
MockHttpServer(int, HttpResponseProvider) - Constructor for class com.github.kristofa.test.http.MockHttpServer
Creates a new instance.
MockHttpServer.ExpectationHandler - Class in com.github.kristofa.test.http
 
MockHttpServer.ExpectationHandler() - Constructor for class com.github.kristofa.test.http.MockHttpServer.ExpectationHandler
 
mode(MockAndProxyFacade.Mode) - Method in class com.github.kristofa.test.http.MockAndProxyFacade.Builder
Sets the Mode in which the MockAndProxyFacade should operate.

N

next() - Method in class com.github.kristofa.test.http.AbstractHttpRequestMatchingFilter
 
next() - Method in interface com.github.kristofa.test.http.HttpRequestMatchingFilter
Get next instance in chain.

O

originalRequest() - Method in interface com.github.kristofa.test.http.HttpRequestMatchingContext
A request that was expected.
originalRequest() - Method in class com.github.kristofa.test.http.HttpRequestMatchingContextImpl
A request that was expected.
otherRequest() - Method in interface com.github.kristofa.test.http.HttpRequestMatchingContext
Another request that we received and that initially did not match original request.
otherRequest() - Method in class com.github.kristofa.test.http.HttpRequestMatchingContextImpl
Another request that we received and that initially did not match original request.

P

PassthroughForwardHttpRequestBuilder - Class in com.github.kristofa.test.http
An implementation of ForwardHttpRequestBuilder that constructs FullHttpRequests that redirects the request to the external service by changing the domain and port of the request.
PassthroughForwardHttpRequestBuilder(String, int) - Constructor for class com.github.kristofa.test.http.PassthroughForwardHttpRequestBuilder
Construct a new instance, incoming requests will be passed through to targetDomain:targetPort of the external service.
PassthroughLoggingHttpProxy - Class in com.github.kristofa.test.http
A LoggingHttpProxy that will behave as a pass-through proxy between the system-under-test and the external service.
PassthroughLoggingHttpProxy(int, String, int, HttpRequestResponseLoggerFactory) - Constructor for class com.github.kristofa.test.http.PassthroughLoggingHttpProxy
Construct a new instance.
path(String) - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Sets path for request.
path(String) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Sets path for request.
port(Integer) - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Sets port for request.
port(int) - Method in class com.github.kristofa.test.http.MockAndProxyFacade.Builder
Sets the port that will be used for either MockHttpServer or LoggingHttpProxy.
POST - Static variable in class com.github.kristofa.test.http.MockHttpServer
 
PostException - Exception in com.github.kristofa.test.http.client
Exception that indicates that a HTTP POST request failed.
PostException(Throwable) - Constructor for exception com.github.kristofa.test.http.client.PostException
Creates a new instance.
PUT - Static variable in class com.github.kristofa.test.http.MockHttpServer
 
PutException - Exception in com.github.kristofa.test.http.client
Exception that indicates that a HTTP PUT request failed.
PutException(Throwable) - Constructor for exception com.github.kristofa.test.http.client.PutException
Create a new exception instance.

Q

queryParameter(String, String) - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
Adds a query parameter for request.
queryParameter(String, String) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Adds a query parameter for request.
QueryParameter - Class in com.github.kristofa.test.http
Defines a query parameter key/value.
QueryParameter(String, String) - Constructor for class com.github.kristofa.test.http.QueryParameter
Creates a new instance.

R

read(File, File) - Method in interface com.github.kristofa.test.http.file.HttpResponseFileReader
Reqds a HttpResponse that is stored in file(s) and reconstructs it.
removeHttpMessageHeader(String, String) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Removes Http message header with given name and value.
removeHttpMessageHeaders(String) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Removes all Http message headers with given name.
removeQueryParameter(String, String) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Removes Query Parameter with given key and value.
removeQueryParameters(String) - Method in class com.github.kristofa.test.http.HttpRequestImpl
Removes all Query Parameters that have given key.
reset() - Method in class com.github.kristofa.test.http.DefaultHttpResponseProvider
Reset the response provider to its original state
reset() - Method in class com.github.kristofa.test.http.SimpleHttpResponseProvider
Reset the response provider to its original state
resetState() - Method in class com.github.kristofa.test.http.AbstractHttpResponseProvider
Clear expected request/responses as well as already received unexpected requests.
respondWith(int, String, String) - Method in class com.github.kristofa.test.http.SimpleHttpResponseProvider
Provide expected response for latest given request.
response() - Method in interface com.github.kristofa.test.http.HttpRequestMatchingContext
Initial response which can have been modified in the meanwhile.
response() - Method in class com.github.kristofa.test.http.HttpRequestMatchingContextImpl
Initial response which can have been modified in the meanwhile.

S

set(HttpRequest, HttpResponse) - Method in class com.github.kristofa.test.http.DefaultHttpResponseProvider
Sets a new request/response.
setContent(byte[]) - Method in class com.github.kristofa.test.http.ContentMatcher
Sets content.
setExceptionResponseCode(int) - Method in class com.github.kristofa.test.http.MockHttpServer
Allows to set a custom response code to be returned when an unexpected exception happens.
setNext(HttpRequestMatchingFilter) - Method in class com.github.kristofa.test.http.AbstractHttpRequestMatchingFilter
 
setNext(HttpRequestMatchingFilter) - Method in interface com.github.kristofa.test.http.HttpRequestMatchingFilter
setNoMatchFoundResponseCode(int) - Method in class com.github.kristofa.test.http.MockHttpServer
Allows you to set a custom response code to be returned when no matching response is found.
SimpleHttpResponseProvider - Class in com.github.kristofa.test.http
HttpResponseProvider that keeps expected request/responses in memory.
SimpleHttpResponseProvider() - Constructor for class com.github.kristofa.test.http.SimpleHttpResponseProvider
 
start() - Method in class com.github.kristofa.test.http.LoggingHttpProxy
Starts proxy.
start() - Method in class com.github.kristofa.test.http.MockAndProxyFacade
Starts either MockHttpServer or LoggingHttpProxy depending on operation mode.
start() - Method in class com.github.kristofa.test.http.MockHttpServer
Starts the server.
stop() - Method in class com.github.kristofa.test.http.LoggingHttpProxy
Stops proxy.
stop() - Method in class com.github.kristofa.test.http.MockAndProxyFacade
Stops either MockHttpServer or LoggingHttpProxy depending on operation mode.
stop() - Method in class com.github.kristofa.test.http.MockHttpServer
Closes the server.
success() - Method in interface com.github.kristofa.test.http.client.HttpClientResponse
Indicates if result of http request was successful.

T

toString() - Method in class com.github.kristofa.test.http.FullHttpRequestImpl
toString() - Method in class com.github.kristofa.test.http.HttpMessageHeader
toString() - Method in class com.github.kristofa.test.http.HttpRequestImpl
 
toString() - Method in class com.github.kristofa.test.http.HttpResponseImpl
toString() - Method in class com.github.kristofa.test.http.QueryParameter
toString() - Method in exception com.github.kristofa.test.http.UnsatisfiedExpectationException

U

UnexpectedContentException - Exception in com.github.kristofa.test.http
Exception that indicates that an unexpected value for content was submitted.
UnexpectedContentException(String) - Constructor for exception com.github.kristofa.test.http.UnexpectedContentException
Create a new exception instance.
UnexpectedContentException(Throwable) - Constructor for exception com.github.kristofa.test.http.UnexpectedContentException
Create a new exception instance.
UnsatisfiedExpectationException - Exception in com.github.kristofa.test.http
Indicates there are http requests that we expected but did not get and/or that we got unexpected http requests.
UnsatisfiedExpectationException(Collection<HttpRequest>, Collection<HttpRequest>) - Constructor for exception com.github.kristofa.test.http.UnsatisfiedExpectationException
Creates a new instance.

V

valueOf(String) - Static method in enum com.github.kristofa.test.http.HttpMessageHeaderField
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.github.kristofa.test.http.MediaType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.github.kristofa.test.http.Method
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.github.kristofa.test.http.MockAndProxyFacade.Mode
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.kristofa.test.http.HttpMessageHeaderField
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.github.kristofa.test.http.MediaType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.github.kristofa.test.http.Method
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.github.kristofa.test.http.MockAndProxyFacade.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
verify() - Method in class com.github.kristofa.test.http.AbstractHttpResponseProvider
Should be executed when all requests have been submitted.
verify() - Method in interface com.github.kristofa.test.http.HttpResponseProvider
Should be executed when all requests have been submitted.
verify() - Method in class com.github.kristofa.test.http.MockAndProxyFacade
In case we are in Mocking operation mode we will verify if all expected requests have been invoked.
verify() - Method in class com.github.kristofa.test.http.MockHttpServer.ExpectationHandler
 
verify() - Method in class com.github.kristofa.test.http.MockHttpServer
Verify if we got all requests as expected.

W

write(HttpRequest, File, File) - Method in interface com.github.kristofa.test.http.file.HttpRequestFileWriter
Writes a HttpRequest to file.
write(HttpResponse, File, File) - Method in interface com.github.kristofa.test.http.file.HttpResponseFileWriter
Writes a HttpResponse to file.
A B C D E F G H L M N O P Q R S T U V W 

Copyright © 2014. All Rights Reserved.