Skip navigation links
A B C D E G H J M R S V W X 

A

AbstractRequestExpectationListBuilder - Class in com.github.tashoyan.httpspy
Abstract class that has implementations for almost all methods of RequestExpectationListBuilder.
AbstractRequestExpectationListBuilder() - Constructor for class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
 
andResponse(ResponseBuilder) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
andResponse(ResponseBuilder) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies response builder to provide a response on the actual request.

B

build() - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
build() - Method in class com.github.tashoyan.httpspy.DefaultResponseBuilder
 
build() - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Builds request expectation.
build() - Method in interface com.github.tashoyan.httpspy.RequestExpectationListBuilder
Builds the list of request expectations.
build() - Method in interface com.github.tashoyan.httpspy.ResponseBuilder
Builds response.

C

CamelJettyHttpRequest - Class in com.github.tashoyan.httpspy
Implementation of HttpRequest to use with CamelJettyHttpSpy.
CamelJettyHttpRequest(Exchange) - Constructor for class com.github.tashoyan.httpspy.CamelJettyHttpRequest
Create new request from Exchange.
CamelJettyHttpResponse - Class in com.github.tashoyan.httpspy
Implementation of HttpResponse to use with CamelJettyHttpSpy.
CamelJettyHttpResponse(int, String, Map<String, List<String>>, long) - Constructor for class com.github.tashoyan.httpspy.CamelJettyHttpResponse
Create new instance of response.
CamelJettyHttpSpy - Class in com.github.tashoyan.httpspy
Implementation of HttpSpy based on camel-jetty component.
CamelJettyHttpSpy(int, String) - Constructor for class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Creates new instance of spy server running on default host CamelJettyHttpSpy.DEFAULT_HOSTNAME.
CamelJettyHttpSpy(String, int, String) - Constructor for class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Creates new instance of spy server.
com.github.tashoyan.httpspy - package com.github.tashoyan.httpspy
 
createSpyProcessor() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Creates Camel Processor that will be used to record actual requests and send responses back.

D

DEFAULT_HOSTNAME - Static variable in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Default host name for the spy server.
DEFAULT_SERVICE_THREADS_NUMBER - Static variable in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Default service threads number.
DefaultRequestExpectation - Class in com.github.tashoyan.httpspy
Default implementation of RequestExpectation.
DefaultRequestExpectation(Matcher<HttpRequest>) - Constructor for class com.github.tashoyan.httpspy.DefaultRequestExpectation
Constructs new instance of request expectation.
DefaultRequestExpectationBuilder - Class in com.github.tashoyan.httpspy
Default implementation of RequestExpectationBuilder.
DefaultRequestExpectationBuilder() - Constructor for class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
Creates new builder instance.
DefaultResponseBuilder - Class in com.github.tashoyan.httpspy
Default implementation of ResponseBuilder.
DefaultResponseBuilder() - Constructor for class com.github.tashoyan.httpspy.DefaultResponseBuilder
Creates new builder instance.
describeMismatchSafely(HttpRequest, Description) - Method in class com.github.tashoyan.httpspy.HttpRequestHeaderMatcher
 
describeMismatchSafely(HttpRequest, Description) - Method in class com.github.tashoyan.httpspy.HttpRequestMatcher
 
describeMismatchSafely(String, Description) - Method in class com.github.tashoyan.httpspy.JsonEqualMatcher
 
describeMismatchSafely(HttpRequest, Description) - Method in class com.github.tashoyan.httpspy.StrictHeadersMatcher
 
describeMismatchSafely(HttpRequest, Description) - Method in class com.github.tashoyan.httpspy.WithoutHeaderRequestMatcher
 
describeMismatchSafely(String, Description) - Method in class com.github.tashoyan.httpspy.XmlEqualMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.HttpRequestHeaderMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.HttpRequestMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.JsonEqualMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.StrictHeadersMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.WithoutHeaderRequestMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.XmlEqualMatcher
 

E

equalTo(String) - Static method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
Creates equal to value expectations.
equalToIgnoreCase(String) - Static method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
Creates equal to ignoring letter case value expectations.
equalToJson(String) - Static method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
Creates {equal to JSON} value expectation.
equalToXml(String) - Static method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
Creates {equal to XML} value expectation.
expect(RequestExpectationBuilder) - Method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
 
expect(int, RequestExpectationBuilder) - Method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
Expect the same request multiple times.
expect(RequestExpectationBuilder) - Method in interface com.github.tashoyan.httpspy.RequestExpectationListBuilder
Adds a request expectation to this list.
expectRequests(RequestExpectationListBuilder) - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
expectRequests(RequestExpectationListBuilder) - Method in interface com.github.tashoyan.httpspy.HttpSpy
Sets request expectation.

G

getBody() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
getBody() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpResponse
 
getBody() - Method in interface com.github.tashoyan.httpspy.HttpRequest
Gets body.
getBody() - Method in interface com.github.tashoyan.httpspy.HttpResponse
Gets body.
getDelayMillis() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpResponse
 
getDelayMillis() - Method in interface com.github.tashoyan.httpspy.HttpResponse
Gets delay in milliseconds before sending the response.
getHeaders() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
getHeaders() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpResponse
 
getHeaders() - Method in interface com.github.tashoyan.httpspy.HttpRequest
Gets headers.
getHeaders() - Method in interface com.github.tashoyan.httpspy.HttpResponse
Gets headers.
getHeaderValues(String) - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
getHeaderValues(String) - Method in interface com.github.tashoyan.httpspy.HttpRequest
Gets all values of specified header.
getHostname() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
getHostname() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Gets host name.
getMatcher() - Method in interface com.github.tashoyan.httpspy.ValueExpectation
Gets a matcher that verifies attribute value.
getMethod() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
getMethod() - Method in interface com.github.tashoyan.httpspy.HttpRequest
Gets HTTP method.
getPath() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
getPath() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
getPath() - Method in interface com.github.tashoyan.httpspy.HttpRequest
Gets HTTP path.
getPath() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Gets HTTP path.
getPort() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
getPort() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Gets network port.
getRealJettyThreadsNumber() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Gets real number of threads that is necessary to be configured for Jetty server.
getRequestExpectations() - Method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
 
getRequestExpectations() - Method in interface com.github.tashoyan.httpspy.RequestExpectationListBuilder
Gets the list of request expectations.
getRequestMatcher() - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectation
 
getRequestMatcher() - Method in interface com.github.tashoyan.httpspy.RequestExpectation
Gets matcher to check an actual request against this expectation.
getResponseBuilder() - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
getResponseBuilder() - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Gets response builder to provide a response on the actual request.
getResponses() - Method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
 
getResponses() - Method in interface com.github.tashoyan.httpspy.RequestExpectationListBuilder
Gets the list of responses on actual requests.
getServiceThreadsNumber() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
getServiceThreadsNumber() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Gets number of threads that concurrently service incoming requests.
getStatusCode() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpResponse
 
getStatusCode() - Method in interface com.github.tashoyan.httpspy.HttpResponse
Gets status code.

H

HttpRequest - Interface in com.github.tashoyan.httpspy
HTTP request.
HttpRequestHeaderMatcher - Class in com.github.tashoyan.httpspy
Matcher to verify that a request has a header with a specified value.
HttpRequestHeaderMatcher(String, ValueExpectation) - Constructor for class com.github.tashoyan.httpspy.HttpRequestHeaderMatcher
Creates new matcher.
HttpRequestMatcher - Class in com.github.tashoyan.httpspy
Matcher to verify a value of some attribute of actually received requests.
HttpRequestMatcher(Function<HttpRequest, Object>, ValueExpectation, String) - Constructor for class com.github.tashoyan.httpspy.HttpRequestMatcher
Creates new matcher.
HttpResponse - Interface in com.github.tashoyan.httpspy
HTTP response.
HttpSpy - Interface in com.github.tashoyan.httpspy
HTTP Spy - a spy for an HTTP server.

J

JsonEqualMatcher - Class in com.github.tashoyan.httpspy
Matcher to verify that a string equals to JSON value.
JsonEqualMatcher(String) - Constructor for class com.github.tashoyan.httpspy.JsonEqualMatcher
* Creates new matcher.

M

matchesSafely(HttpRequest) - Method in class com.github.tashoyan.httpspy.HttpRequestHeaderMatcher
 
matchesSafely(HttpRequest) - Method in class com.github.tashoyan.httpspy.HttpRequestMatcher
 
matchesSafely(String) - Method in class com.github.tashoyan.httpspy.JsonEqualMatcher
 
matchesSafely(HttpRequest) - Method in class com.github.tashoyan.httpspy.StrictHeadersMatcher
 
matchesSafely(HttpRequest) - Method in class com.github.tashoyan.httpspy.WithoutHeaderRequestMatcher
 
matchesSafely(String) - Method in class com.github.tashoyan.httpspy.XmlEqualMatcher
 
matching(Matcher<String>) - Static method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
Creates matches value expectation.

R

request() - Method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
 
request() - Method in interface com.github.tashoyan.httpspy.RequestExpectationListBuilder
Returns new request expectation builder that user will use to specify his expectations.
RequestExpectation - Interface in com.github.tashoyan.httpspy
Request expectation.
RequestExpectationBuilder - Interface in com.github.tashoyan.httpspy
Request expectation builder.
RequestExpectationListBuilder - Interface in com.github.tashoyan.httpspy
Builder that constructs a list of request expectations.
reset() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
reset() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Reset the spy server.
response() - Method in class com.github.tashoyan.httpspy.AbstractRequestExpectationListBuilder
 
response() - Method in interface com.github.tashoyan.httpspy.RequestExpectationListBuilder
Returns new response builder that user will use to describe a response on the actual request.
ResponseBuilder - Interface in com.github.tashoyan.httpspy
Response builder.

S

sendInExchange(Exchange) - Method in class com.github.tashoyan.httpspy.CamelJettyHttpResponse
Send this response in Camel exchange.
setServiceThreadsNumber(int) - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
setServiceThreadsNumber(int) - Method in interface com.github.tashoyan.httpspy.HttpSpy
Sets threads number to concurrently service incoming requests.
start() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
start() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Start the spy server.
stop() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
stop() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Stop the spy server.
StrictHeadersMatcher - Class in com.github.tashoyan.httpspy
Matcher to verify that a request has only headers with specified names.
StrictHeadersMatcher(Set<String>) - Constructor for class com.github.tashoyan.httpspy.StrictHeadersMatcher
Creates new matcher.

V

ValueExpectation - Interface in com.github.tashoyan.httpspy
Expectation for a value of some string attribute.
verify() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
verify() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Verify that expectations are met.

W

withBody(ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withBody(String) - Method in class com.github.tashoyan.httpspy.DefaultResponseBuilder
 
withBody(ValueExpectation) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request body.
withBody(String) - Method in interface com.github.tashoyan.httpspy.ResponseBuilder
Specifies response body.
withDelay(TimeUnit, long) - Method in class com.github.tashoyan.httpspy.DefaultResponseBuilder
 
withDelay(TimeUnit, long) - Method in interface com.github.tashoyan.httpspy.ResponseBuilder
Specifies response delay.
withHeader(String) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withHeader(String, ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withHeader(String, int, ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withHeader(String, String) - Method in class com.github.tashoyan.httpspy.DefaultResponseBuilder
 
withHeader(String) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request header without any expectations on its value.
withHeader(String, ValueExpectation) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request header with its value, but without position in the list of header values.
withHeader(String, int, ValueExpectation) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request header with its value and position in the list of header values.
withHeader(String, String) - Method in interface com.github.tashoyan.httpspy.ResponseBuilder
Specifies response header.
withMethod(ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withMethod(ValueExpectation) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request method.
withoutHeader(String) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withoutHeader(String) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies that request is not expected to have this header.
WithoutHeaderRequestMatcher - Class in com.github.tashoyan.httpspy
Matcher to verify that a request does have the specified header.
WithoutHeaderRequestMatcher(String) - Constructor for class com.github.tashoyan.httpspy.WithoutHeaderRequestMatcher
Creates new matcher.
withPath(ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withPath(ValueExpectation) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request path.
withRequestAttribute(Function<HttpRequest, Object>, String, ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
Sets expectation on the value of a request attribute.
withStatus(int) - Method in class com.github.tashoyan.httpspy.DefaultResponseBuilder
 
withStatus(int) - Method in interface com.github.tashoyan.httpspy.ResponseBuilder
Specifies response status code.
withStrictHeaders() - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withStrictHeaders() - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
If the property strict headers is enabled, this expectation allows only headers specified explicitly by RequestExpectationBuilder.withHeader(java.lang.String) method.

X

XmlEqualMatcher - Class in com.github.tashoyan.httpspy
Matcher to verify that a string equals to XML value.
XmlEqualMatcher(String) - Constructor for class com.github.tashoyan.httpspy.XmlEqualMatcher
* Creates new matcher.
A B C D E G H J M R S V W X 
Skip navigation links

Copyright © 2016. All rights reserved.