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

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

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

/**
 * @author jamesdbloom
 */
public class BinaryMessage implements Message {

    private byte[] bytes;

    public static BinaryMessage bytes(byte[] bytes) {
        return new BinaryMessage()
            .withBytes(bytes);
    }

    public BinaryMessage withBytes(byte[] bytes) {
        this.bytes = bytes;
        return this;
    }

    public byte[] getBytes() {
        return bytes;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy