Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

Action - Class in com.xebialabs.restito.semantics
Action is a modifier for Response
ActionSequence - Class in com.xebialabs.restito.semantics
 
ActionSequence(List<Applicable>) - Constructor for class com.xebialabs.restito.semantics.ActionSequence
 
addStub(Stub) - Method in class com.xebialabs.restito.server.StubServer
It is possible to add a stub even after the server is started
after() - Method in class com.xebialabs.restito.support.junit.StartServer
 
alsoWhen(Condition) - Method in class com.xebialabs.restito.semantics.Stub
Appends an extra condition to the stub.
alwaysFalse() - Static method in class com.xebialabs.restito.semantics.Condition
Always false
alwaysFalse() - Static method in class com.xebialabs.restito.semantics.Predicates
 
alwaysTrue() - Static method in class com.xebialabs.restito.semantics.Condition
Always true
alwaysTrue() - Static method in class com.xebialabs.restito.semantics.Predicates
 
and(Predicate...) - Static method in class com.xebialabs.restito.semantics.Predicates
 
Applicable - Interface in com.xebialabs.restito.semantics
Something that can be applied to response
apply(Response) - Method in class com.xebialabs.restito.semantics.Action
Perform the action with response
apply(Response) - Method in interface com.xebialabs.restito.semantics.Applicable
 
apply(Response) - Method in class com.xebialabs.restito.semantics.Stub
Executes all actions against the response.
apply(Statement, Description) - Method in class com.xebialabs.restito.support.junit.ServerDependencyRule
 
atLeast(int, Condition...) - Method in class com.xebialabs.restito.builder.verify.VerifyHttp
There should be at least t calls which satisfies the given conditions

B

basicAuth(String, String) - Static method in class com.xebialabs.restito.semantics.Condition
If basic authentication is provided
before() - Method in class com.xebialabs.restito.support.junit.StartServer
 
bytesContent(byte[]) - Static method in class com.xebialabs.restito.semantics.Action
Writes bytes content to response

C

Call - Class in com.xebialabs.restito.semantics
Call that happened to server.
CallsHelper - Class in com.xebialabs.restito.support.log
 
CallsHelper() - Constructor for class com.xebialabs.restito.support.log.CallsHelper
 
charset(String) - Static method in class com.xebialabs.restito.semantics.Action
Sets charset of the response (must come before stringContent/resourceContent Action)
charset(Charset) - Static method in class com.xebialabs.restito.semantics.Action
Sets charset of the response (must come before stringContent/resourceContent Action)
check(Call) - Method in class com.xebialabs.restito.semantics.Condition
Check if call satisfies the condition
clear() - Method in class com.xebialabs.restito.server.StubServer
Clears the server state.
clearCalls() - Method in class com.xebialabs.restito.server.StubServer
Removes any registered stubs calls.
clearStubs() - Method in class com.xebialabs.restito.server.StubServer
Removes any previously registered stubs.
com.xebialabs.restito.builder.ensure - package com.xebialabs.restito.builder.ensure
 
com.xebialabs.restito.builder.stub - package com.xebialabs.restito.builder.stub
 
com.xebialabs.restito.builder.verify - package com.xebialabs.restito.builder.verify
 
com.xebialabs.restito.resources - package com.xebialabs.restito.resources
 
com.xebialabs.restito.semantics - package com.xebialabs.restito.semantics
 
com.xebialabs.restito.server - package com.xebialabs.restito.server
 
com.xebialabs.restito.support.file - package com.xebialabs.restito.support.file
 
com.xebialabs.restito.support.junit - package com.xebialabs.restito.support.junit
 
com.xebialabs.restito.support.log - package com.xebialabs.restito.support.log
 
com.xebialabs.restito.support.resource - package com.xebialabs.restito.support.resource
 
composite(Applicable...) - Static method in class com.xebialabs.restito.semantics.Action
Creates a composite action which contains all passed actions and executes them in the same order.
composite(Collection<Applicable>) - Static method in class com.xebialabs.restito.semantics.Action
Creates a composite action which contains all passed actions and executes them in the same order.
composite(Action...) - Static method in class com.xebialabs.restito.semantics.Action
Creates a composite action which contains all passed actions and executes them in the same order.
composite(Condition...) - Static method in class com.xebialabs.restito.semantics.Condition
Joins many conditions with "and" operation
Condition - Class in com.xebialabs.restito.semantics
Condition is something that can be true or false given the Call.
Condition(Predicate<Call>) - Constructor for class com.xebialabs.restito.semantics.Condition
 
ConditionWithApplicables - Class in com.xebialabs.restito.semantics
!EXPERIMENTAL! This stuff is experimental.
ConditionWithApplicables(Predicate<Call>, Applicable...) - Constructor for class com.xebialabs.restito.semantics.ConditionWithApplicables
 
ConditionWithApplicables(Condition, Applicable...) - Constructor for class com.xebialabs.restito.semantics.ConditionWithApplicables
 
ConditionWithApplicables(Predicate<Call>, List<Applicable>) - Constructor for class com.xebialabs.restito.semantics.ConditionWithApplicables
 
contentType(String) - Static method in class com.xebialabs.restito.semantics.Action
Sets content type to the response
custom(Function<Response, Response>) - Static method in class com.xebialabs.restito.semantics.Action
Perform set of custom actions on response
custom(Predicate<Call>) - Static method in class com.xebialabs.restito.semantics.Condition
Custom condition

D

DEFAULT_PORT - Static variable in class com.xebialabs.restito.server.StubServer
 
delay(Integer) - Static method in class com.xebialabs.restito.semantics.Action
Sleeps so many milliseconds, emulating slow requests.
delete(String) - Static method in class com.xebialabs.restito.semantics.Condition
Method DELETE with given URI
discoverResource(Method, String) - Method in class com.xebialabs.restito.resources.SmartDiscoverer
Discovers resource based on request Tries different options: GET asd/bsd/asd => resource: {resourcePrefix}/get.asd.bsd.asd GET asd/bsd/asd => resource: {resourcePrefix}/get/asd/bsd/asd GET asd/bsd/asd => resource: {resourcePrefix}/asd.bsd.asd GET asd/bsd/asd => resource: {resourcePrefix}/asd/bsd/asd GET asd/bsd/asd => resource: {resourcePrefix}/get.asd.bsd.asd.xml GET asd/bsd/asd => resource: {resourcePrefix}/get/asd/bsd/asd.xml GET asd/bsd/asd => resource: {resourcePrefix}/asd.bsd.asd.xml GET asd/bsd/asd => resource: {resourcePrefix}/asd/bsd/asd.xml GET asd/bsd/asd => resource: {resourcePrefix}/get.asd.bsd.asd.json GET asd/bsd/asd => resource: {resourcePrefix}/get/asd/bsd/asd.json GET asd/bsd/asd => resource: {resourcePrefix}/asd.bsd.asd.json GET asd/bsd/asd => resource: {resourcePrefix}/asd/bsd/asd.json

E

endsWithUri(String) - Static method in class com.xebialabs.restito.semantics.Condition
URI ends with
EnsureHttp - Class in com.xebialabs.restito.builder.ensure
!EXPERIMENTAL! This stuff is experimental.
ensureHttp(StubServer) - Static method in class com.xebialabs.restito.builder.ensure.EnsureHttp
Static factory to instantiate the class

F

FileHelper - Class in com.xebialabs.restito.support.file
 
FileHelper() - Constructor for class com.xebialabs.restito.support.file.FileHelper
 
fromRequest(Request) - Static method in class com.xebialabs.restito.semantics.Call
Factory method

G

get(String) - Static method in class com.xebialabs.restito.semantics.Condition
Method GET with given URI
getActions() - Method in class com.xebialabs.restito.semantics.ActionSequence
 
getActionSequence() - Method in class com.xebialabs.restito.semantics.Stub
 
getApplicables() - Method in class com.xebialabs.restito.semantics.ConditionWithApplicables
 
getAppliedTimes() - Method in class com.xebialabs.restito.semantics.Stub
 
getAuthorization() - Method in class com.xebialabs.restito.semantics.Call
Returns an authorization header, or null if doesn't exist
getBytes(URL) - Static method in class com.xebialabs.restito.support.resource.ResourceHelper
 
getBytes(InputStream) - Static method in class com.xebialabs.restito.support.resource.ResourceHelper
 
getCalls() - Method in class com.xebialabs.restito.server.StubServer
Returns calls performed to the server.
getContentType() - Method in class com.xebialabs.restito.semantics.Call
Content type of the call
getExpectedTimes() - Method in class com.xebialabs.restito.semantics.Stub
Get how many times stub expected to be called
getExpectSequenceCompleted() - Method in class com.xebialabs.restito.semantics.Stub
 
getFileExtension(String) - Static method in class com.xebialabs.restito.support.file.FileHelper
 
getHeaders() - Method in class com.xebialabs.restito.semantics.Call
Map of headers
getMethod() - Method in class com.xebialabs.restito.semantics.Call
Http method
getParameters() - Method in class com.xebialabs.restito.semantics.Call
Map of parameters.
getPort() - Method in class com.xebialabs.restito.server.StubServer
Returns the port which the server is running at
getPostBody() - Method in class com.xebialabs.restito.semantics.Call
In case of POST request - returns post body
getPredicate() - Method in class com.xebialabs.restito.semantics.Condition
Returns the predicate of condition
getRequest() - Method in class com.xebialabs.restito.semantics.Call
Returns raw HTTP request
getServer() - Method in class com.xebialabs.restito.support.junit.StartServer
 
getServerUrl() - Method in class com.xebialabs.restito.support.junit.StartServer
 
getStubs() - Method in class com.xebialabs.restito.server.StubServer
Returns stubs associated with the server.
getUri() - Method in class com.xebialabs.restito.semantics.Call
URI of the call
getUrl() - Method in class com.xebialabs.restito.semantics.Call
 
gotStubsCommitmentsDone() - Method in class com.xebialabs.restito.builder.ensure.EnsureHttp
 

H

header(String, String) - Static method in class com.xebialabs.restito.semantics.Action
Sets key-value header on response

I

isApplicable(Call) - Method in class com.xebialabs.restito.semantics.Stub
Checks whether the call satisfies condition of this stub
isServerDependent() - Method in class com.xebialabs.restito.support.junit.ServerDependencyRule
Returns true when current test case is marked with NeedsServer and thus needs the server to be started.

L

logCall(Call) - Static method in class com.xebialabs.restito.support.log.CallsHelper
 
logCalls(List<Call>) - Static method in class com.xebialabs.restito.support.log.CallsHelper
 

M

match(Condition...) - Method in class com.xebialabs.restito.builder.stub.StubHttp
Adds some conditions to the stub
matchesUri(Pattern) - Static method in class com.xebialabs.restito.semantics.Condition
URI starts with
method(Method) - Static method in class com.xebialabs.restito.semantics.Condition
Checks HTTP method
mustComplete() - Method in class com.xebialabs.restito.builder.stub.StubWithSequence
Should receive requests for all steps of the sequence
mustHappen() - Method in class com.xebialabs.restito.builder.stub.StubWithAction
Should happen once
mustHappen(int) - Method in class com.xebialabs.restito.builder.stub.StubWithAction
Set number of times it should happen

N

NeedsServer - Annotation Type in com.xebialabs.restito.support.junit
 
never(Condition...) - Method in class com.xebialabs.restito.builder.verify.VerifyHttp
There should be no calls which satisfies given conditions
noContent() - Static method in class com.xebialabs.restito.semantics.Action
Sets HTTP status 204 to response
noop() - Static method in class com.xebialabs.restito.semantics.Action
Doing nothing.
not(Condition) - Static method in class com.xebialabs.restito.semantics.Condition
Not condition
not(Predicate<T>) - Static method in class com.xebialabs.restito.semantics.Predicates
 

O

ok() - Static method in class com.xebialabs.restito.semantics.Action
Sets HTTP status 200 to response
once(Condition...) - Method in class com.xebialabs.restito.builder.verify.VerifyHttp
There should be only one call which satisfies given conditions

P

parameter(String, String...) - Static method in class com.xebialabs.restito.semantics.Condition
Checks HTTP parameters.
patch(String) - Static method in class com.xebialabs.restito.semantics.Condition
Method PATCH with given URI
post(String) - Static method in class com.xebialabs.restito.semantics.Condition
Method POST with given URI
Predicates - Class in com.xebialabs.restito.semantics
 
Predicates() - Constructor for class com.xebialabs.restito.semantics.Predicates
 
put(String) - Static method in class com.xebialabs.restito.semantics.Condition
Method PUT with given URI

R

resourceContent(String) - Static method in class com.xebialabs.restito.semantics.Action
Writes content and content-type of resource file to response.
resourceContent(String, String) - Static method in class com.xebialabs.restito.semantics.Action
resourceContent(URL) - Static method in class com.xebialabs.restito.semantics.Action
Writes content using the specified encoding and content-type of resource file to response.
resourceContent(URL, Charset) - Static method in class com.xebialabs.restito.semantics.Action
ResourceHelper - Class in com.xebialabs.restito.support.resource
 
ResourceHelper() - Constructor for class com.xebialabs.restito.support.resource.ResourceHelper
 
run() - Method in class com.xebialabs.restito.server.StubServer
Starts the server

S

secured - Variable in class com.xebialabs.restito.server.StubServer
Whether or not the server should run in HTTPS mode.
secured() - Method in class com.xebialabs.restito.server.StubServer
Sets the Server in Secure mode.
sequence(Applicable...) - Static method in class com.xebialabs.restito.semantics.ActionSequence
Creates a sequence action which contains all passed actions and executes one by one of them in the same order if Action.apply(Response) is repeated.
ServerDependencyRule - Class in com.xebialabs.restito.support.junit
This rule can be used together with NeedsServer annotation.
ServerDependencyRule() - Constructor for class com.xebialabs.restito.support.junit.ServerDependencyRule
 
setExpectedTimes(int) - Method in class com.xebialabs.restito.semantics.Stub
 
setExpectSequenceCompleted(Boolean) - Method in class com.xebialabs.restito.semantics.Stub
 
size() - Method in class com.xebialabs.restito.semantics.ActionSequence
 
SmartDiscoverer - Class in com.xebialabs.restito.resources
!EXPERIMENTAL! This stuff is experimental.
SmartDiscoverer(String) - Constructor for class com.xebialabs.restito.resources.SmartDiscoverer
 
start() - Method in class com.xebialabs.restito.server.StubServer
Alias for StubServer.run()
StartServer - Class in com.xebialabs.restito.support.junit
 
StartServer() - Constructor for class com.xebialabs.restito.support.junit.StartServer
 
StartServer(int) - Constructor for class com.xebialabs.restito.support.junit.StartServer
 
StartServer(int, int) - Constructor for class com.xebialabs.restito.support.junit.StartServer
 
startsWithUri(String) - Static method in class com.xebialabs.restito.semantics.Condition
URI starts with
status(HttpStatus) - Static method in class com.xebialabs.restito.semantics.Action
Sets HTTP status to response
stop() - Method in class com.xebialabs.restito.server.StubServer
Stops the server
stringContent(String) - Static method in class com.xebialabs.restito.semantics.Action
Writes string content to response
stub - Variable in class com.xebialabs.restito.builder.stub.StubWithAction
 
stub - Variable in class com.xebialabs.restito.builder.stub.StubWithCondition
 
stub - Variable in class com.xebialabs.restito.builder.stub.StubWithSequence
 
Stub - Class in com.xebialabs.restito.semantics
Stub is not responsible for decision whether to execute action or not (e.g.
Stub(Condition, Applicable) - Constructor for class com.xebialabs.restito.semantics.Stub
Creates a stub with action and condition
Stub(Condition) - Constructor for class com.xebialabs.restito.semantics.Stub
 
Stub(Condition, ActionSequence) - Constructor for class com.xebialabs.restito.semantics.Stub
Creates a stub with action and condition
StubHttp - Class in com.xebialabs.restito.builder.stub
Normal HTTP stub
StubServer - Class in com.xebialabs.restito.server
The HttpServer wrapper which is responsible for operations like starting and stopping and holding objects that describe server behavior.
StubServer(Stub...) - Constructor for class com.xebialabs.restito.server.StubServer
Creates a server based on stubs that are used to determine behavior.
StubServer(int, int, Stub...) - Constructor for class com.xebialabs.restito.server.StubServer
This constructor allows to specify the port range beside stubs.
StubServer(int, Stub...) - Constructor for class com.xebialabs.restito.server.StubServer
This constructor allows to specify the port beside stubs.
StubWithAction - Class in com.xebialabs.restito.builder.stub
Stub building stage with actions attached.
StubWithAction(Stub) - Constructor for class com.xebialabs.restito.builder.stub.StubWithAction
 
StubWithCondition - Class in com.xebialabs.restito.builder.stub
Stub building stage with condition attached.
StubWithCondition(StubServer, Condition) - Constructor for class com.xebialabs.restito.builder.stub.StubWithCondition
 
StubWithSequence - Class in com.xebialabs.restito.builder.stub
Stub building stage with a sequence attached..
StubWithSequence(Stub) - Constructor for class com.xebialabs.restito.builder.stub.StubWithSequence
 
success() - Static method in class com.xebialabs.restito.semantics.Action
Sets HTTP status 200 to response.

T

then() - Method in class com.xebialabs.restito.builder.stub.StubWithCondition
 
then(ActionSequence...) - Method in class com.xebialabs.restito.builder.stub.StubWithCondition
 
then(Applicable...) - Method in class com.xebialabs.restito.builder.stub.StubWithCondition
Attach actions to the stub
then() - Method in class com.xebialabs.restito.builder.verify.VerifySequenced
Returns next round of verification
times(int, Condition...) - Method in class com.xebialabs.restito.builder.verify.VerifyHttp
There should be t calls which satisfies given conditions
toString() - Method in class com.xebialabs.restito.semantics.Stub
 

U

unauthorized() - Static method in class com.xebialabs.restito.semantics.Action
Returns unauthorized response with default realm name
unauthorized(String) - Static method in class com.xebialabs.restito.semantics.Action
Returns unauthorized response
uri(String) - Static method in class com.xebialabs.restito.semantics.Condition
URI exactly equals to the value returned by Request.getRequestURI()
url(String) - Static method in class com.xebialabs.restito.semantics.Condition
URL exactly equals to the value returned by org.glassfish.grizzly.http.server.Request#getRequestURL)

V

VerifyHttp - Class in com.xebialabs.restito.builder.verify
Responsible for building verifications (e.g.
verifyHttp(StubServer) - Static method in class com.xebialabs.restito.builder.verify.VerifyHttp
Static factory
verifyHttp(List<Call>) - Static method in class com.xebialabs.restito.builder.verify.VerifyHttp
Static factory
VerifySequenced - Class in com.xebialabs.restito.builder.verify
Responsible for providing ability to have sequenced verifications

W

whenExceeded(Applicable) - Method in class com.xebialabs.restito.builder.stub.StubWithSequence
The action to apply for the requests that are exceeding the sequence configuration.
whenHttp(StubServer) - Static method in class com.xebialabs.restito.builder.stub.StubHttp
Static factory for this class
withAction(Applicable) - Method in class com.xebialabs.restito.semantics.Stub
 
withActionSequence(List<Applicable>) - Method in class com.xebialabs.restito.semantics.Stub
 
withExceededAction(Applicable) - Method in class com.xebialabs.restito.semantics.Stub
 
withExtraAction(Applicable) - Method in class com.xebialabs.restito.semantics.Stub
Appends an extra action to the stub
withHeader(String) - Static method in class com.xebialabs.restito.semantics.Condition
With header present.
withHeader(String, String) - Static method in class com.xebialabs.restito.semantics.Condition
With header present and equals.
withPostBody() - Static method in class com.xebialabs.restito.semantics.Condition
Contains non-empty POST body
withPostBodyContaining(String) - Static method in class com.xebialabs.restito.semantics.Condition
With POST body containing string
withPostBodyContaining(Pattern) - Static method in class com.xebialabs.restito.semantics.Condition
With post body matching pattern
withPostBodyContainingJsonPath(String, Object) - Static method in class com.xebialabs.restito.semantics.Condition
With Valid Json Path.
withSequence(Applicable...) - Method in class com.xebialabs.restito.builder.stub.StubWithAction
 
withSequenceItem(Applicable) - Method in class com.xebialabs.restito.semantics.Stub
 
A B C D E F G H I L M N O P R S T U V W