All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.sb1.troxy.common.Mode Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.2.49
Show newest version
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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy