io.github.stewseo.client.transport.endpoints.BinaryEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yelp-fusion-client Show documentation
Show all versions of yelp-fusion-client Show documentation
java client to build api objects, handle http transport, and parse/deserialize/serialize json to/from json
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