org.mockserver.model.BinaryBody 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;
import javax.xml.bind.DatatypeConverter;
/**
* @author jamesdbloom
*/
public class BinaryBody extends Body {
private final byte[] value;
public BinaryBody(byte[] value) {
super(Type.BINARY);
this.value = value;
}
public static BinaryBody binary(byte[] body) {
return new BinaryBody(body);
}
public byte[] getValue() {
return value;
}
@Override
public String toString() {
return new String(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy