no.sb1.troxy.common.Mode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of troxy-core Show documentation
Show all versions of troxy-core Show documentation
Troxy is a proxy intended for simulating a remote service without actually
connecting to the server. Incoming requests are matched using regular
expressions and responses are created from a recorded response from the remote
service and optionally modified by inserting values caught from the regular
expression used to match the request.
package no.sb1.troxy.common;
/**
* The simulator mode, denoting whether to playback, record, etc.
*/
public enum Mode {
/**
* Playback recordings, will fail if there are no matching recordings.
*/
PLAYBACK,
/**
* Record request/responses, even if a matching recording already exists.
*/
RECORD,
/**
* Playback if a matching recording exists, if not then record the request/responses.
*/
PLAYBACK_OR_RECORD,
/**
* Neither playback nor record, let the call pass through.
*/
PASSTHROUGH,
/**
* Playback if a matching recording exists, otherwise let the call pass through.
*/
PLAYBACK_OR_PASSTHROUGH
}