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

fr.alexpado.lib.rest.enums.RequestMethod Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package fr.alexpado.lib.rest.enums;

public enum RequestMethod {

    GET(false),
    POST(true),
    PUT(true),
    DELETE(true);

    boolean outputSupported;

    RequestMethod(boolean outputSupported) {

        this.outputSupported = outputSupported;
    }

    /**
     * Check if the current {@link RequestMethod} supports request body.
     *
     * @return True if a request body is supported, false otherwise.
     */
    public boolean isOutputSupported() {

        return outputSupported;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy