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

io.github.stewseo.client.transport.endpoints.BinaryEndpoint Maven / Gradle / Ivy

Go to download

java client to build api objects, handle http transport, and parse/deserialize/serialize json to/from json

There is a newer version: 1.8.0
Show newest version
package io.github.stewseo.client.transport.endpoints;

import io.github.stewseo.client.transport.EndpointBase;

import java.util.Map;
import java.util.function.Function;

public class BinaryEndpoint extends EndpointBase {

    public BinaryEndpoint(
            String id,
            Function method,
            Function requestUrl,
            Function> queryParameters,
            Function> headers,
            boolean hasRequestBody,
            Object ignored // same number of arguments as SimpleEndpoint
    ) {
        super(id, method, requestUrl, queryParameters, headers, hasRequestBody);
    }

    @Override
    public boolean isError(int statusCode) {
        return statusCode >= 400;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy