Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(Stubbing...) - Method in class org.stubit.http.HttpStub
- address() - Method in class org.stubit.http.HttpStub
B
- body() - Method in record class org.stubit.http.HttpRequest
-
Returns the value of the
bodyrecord component. - body() - Method in record class org.stubit.http.StubbedResponse
-
Returns the value of the
bodyrecord component. - body(String) - Method in class org.stubit.http.StubbedResponse.Builder
-
Sets the body for the response.
- Builder() - Constructor for class org.stubit.http.StubbedResponse.Builder
- Builder() - Constructor for class org.stubit.http.Stubbing.Builder
C
E
- equals(Object) - Method in record class org.stubit.http.HttpRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.stubit.http.StubbedResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.stubit.http.Stubbing
-
Indicates whether some other object is "equal to" this one.
H
- hashCode() - Method in record class org.stubit.http.HttpRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.stubit.http.StubbedResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.stubit.http.Stubbing
-
Returns a hash code value for this object.
- header(String, String...) - Method in class org.stubit.http.StubbedResponse.Builder
-
Adds a header that will be set in the response.
- headers() - Method in record class org.stubit.http.StubbedResponse
-
Returns the value of the
headersrecord component. - HttpRequest - Record Class in org.stubit.http
-
Represents an HTTP request.
- HttpRequest(String, URI, String) - Constructor for record class org.stubit.http.HttpRequest
-
Creates an instance of a
HttpRequestrecord class. - HttpStub - Class in org.stubit.http
-
A
HttpStubwraps anHttpServerthat is started locally on a dynamic port to serve fixed stubbed responses (Stubbings). - HttpStub() - Constructor for class org.stubit.http.HttpStub
-
Creates and starts the HttpStub.
- HttpStubCreationException - Exception in org.stubit.http
-
Exception for startup failures.
- HttpStubCreationException(IOException) - Constructor for exception org.stubit.http.HttpStubCreationException
M
- method() - Method in record class org.stubit.http.HttpRequest
-
Returns the value of the
methodrecord component. - method(String, String...) - Method in class org.stubit.http.Stubbing.Builder
O
- org.stubit.http - package org.stubit.http
P
- path(String) - Method in class org.stubit.http.Stubbing.Builder
- predicate() - Method in record class org.stubit.http.Stubbing
-
Returns the value of the
predicaterecord component.
R
- receivedRequests() - Method in class org.stubit.http.HttpStub
-
Returns all received requests.
- receivedRequests(Predicate<HttpRequest>) - Method in class org.stubit.http.HttpStub
-
Returns all received request that match the given predicate.
- reset() - Method in class org.stubit.http.HttpStub
-
Removes all
Stubbings. - response() - Static method in record class org.stubit.http.StubbedResponse
- response() - Method in record class org.stubit.http.Stubbing
-
Returns the value of the
responserecord component. - returns(StubbedResponse) - Method in class org.stubit.http.Stubbing.Builder
-
Sets the response and builds the
Stubbing.
S
- statusCode() - Method in record class org.stubit.http.StubbedResponse
-
Returns the value of the
statusCoderecord component. - statusCode(int) - Method in class org.stubit.http.StubbedResponse.Builder
-
Sets the status code for the response and builds the
StubbedResponse. - stub() - Static method in record class org.stubit.http.Stubbing
- StubbedResponse - Record Class in org.stubit.http
-
A
StubbedResponsedefines the response that will be returned by the stub. - StubbedResponse(int, String, Map<String, List<String>>) - Constructor for record class org.stubit.http.StubbedResponse
-
Creates an instance of a
StubbedResponserecord class. - StubbedResponse.Builder - Class in org.stubit.http
-
A fluent API builder for
StubbedResponse. - Stubbing - Record Class in org.stubit.http
-
A
Stubbingdefines that all requests that match the givenStubbing.predicateshould return the givenStubbing.response() - Stubbing(Predicate<HttpRequest>, StubbedResponse) - Constructor for record class org.stubit.http.Stubbing
-
Creates an instance of a
Stubbingrecord class. - Stubbing.Builder - Class in org.stubit.http
-
A fluent API builder for
Stubbing.
T
- toString() - Method in record class org.stubit.http.HttpRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.stubit.http.StubbedResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.stubit.http.Stubbing
-
Returns a string representation of this record class.
U
- uri() - Method in record class org.stubit.http.HttpRequest
-
Returns the value of the
urirecord component.
All Classes and Interfaces|All Packages|Serialized Form