Package com.github.kristofa.test.http

Interface Summary
ForwardHttpRequestBuilder Responsible for building forwarding http requests.
FullHttpRequest A Full HTTP Request extends a HttpRequest with domain (host), port.
HttpRequest Contains the HTTP request properties required to identify or compare a HTTP request.
HttpRequestMatchingContext Context for matching a http request.
HttpRequestMatchingFilter A HttpRequestMatchingFilter contains logic to deal with expected differences between 2 requests and brings them in-line so that they can potentially match.
HttpRequestResponseLogger Logs a HttpRequest / HttpResponse combination.
HttpRequestResponseLoggerFactory Responsible for creating HttpRequestResponseLogger instances.
HttpResponse HTTP response.
HttpResponseProvider Provides responses for given http requests.
HttpResponseProxy Http responses can be large and they are only needed when the corresponding http request matched.
 

Class Summary
AbstractHttpRequestMatchingFilter Abstract HttpRequestMatchingFilter implementation which is able to deal with setting and returning next HttpRequestMatchingFilter in chain.
AbstractHttpResponseProvider 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.
AllExceptContentTypeHeaderFilter HttpRequestMatchingFilter that will remove all http headers except Content-Type from original and other http request.
AllExceptOriginalHeadersFilter HttpRequestMatchingFilter that will remove http headers in 'other request' with given key in case headers with same key are not present in original request.
ContentMatcher The content of a HttpRequest or response can be structured data like JSON / XML.
DefaultHttpResponseProvider A HttpResponseProvider that supports http request with all properties.
DefaultHttpResponseProxy  
FullHttpRequestImpl Represents a HTTP request.
HttpMessageHeader Represents http message header entry.
HttpRequestImpl  
HttpRequestMatchingContextImpl HttpRequestMatchingContext implementation.
HttpResponseImpl HttpResponse implementation.
LoggingHttpProxy Http proxy that supports logging requests/reponses.
MockAndProxyFacade 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  
MockHttpServer Mock Http Server which can be used to return upfront defined responses for a set of http requests.
PassthroughForwardHttpRequestBuilder An implementation of ForwardHttpRequestBuilder that constructs FullHttpRequests that redirects the request to the external service by changing the domain and port of the request.
PassthroughLoggingHttpProxy A LoggingHttpProxy that will behave as a pass-through proxy between the system-under-test and the external service.
QueryParameter Defines a query parameter key/value.
SimpleHttpResponseProvider HttpResponseProvider that keeps expected request/responses in memory.
 

Enum Summary
HttpMessageHeaderField List of often used http message header fields.
MediaType The media type is the value of Content-Type http message header and is defined of 2 or more parts.
Method Defines http methods.
MockAndProxyFacade.Mode Specifies the mode in which MockAndProxyFacade should be operating.
 

Exception Summary
UnexpectedContentException Exception that indicates that an unexpected value for content was submitted.
UnsatisfiedExpectationException Indicates there are http requests that we expected but did not get and/or that we got unexpected http requests.
 



Copyright © 2014. All Rights Reserved.