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

org.mockserver.model.Body Maven / Gradle / Ivy

There is a newer version: 5.15.0
Show newest version
package org.mockserver.model;

/**
 * @author jamesdbloom
 */
public abstract class Body extends ObjectWithReflectiveEqualsHashCodeToString {

    private final Type type;

    public Body(Type type) {
        this.type = type;
    }

    public Type getType() {
        return type;
    }

    public abstract T getValue();

    public abstract byte[] getRawBytes();

    public enum Type {
        PARAMETERS,
        XPATH,
        JSON,
        REGEX,
        STRING,
        BINARY
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy