org.mockserver.model.Body Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
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