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

br.com.moip.api.request.RequestProperties Maven / Gradle / Ivy

package br.com.moip.api.request;

import org.apache.http.entity.ContentType;

import java.util.Map;

public class RequestProperties {

    protected String method;
    protected String endpoint;
    protected Map body;
    protected Class type;
    protected ContentType contentType;
    protected String accept;

    public String getMethod() { return method; }

    public String getEndpoint() { return endpoint; }

    public Object getObject() { return body; }

    public  Class getType() { return type; }

    public ContentType getContentType() { return contentType; }

    public String getAccept() { return accept; }

    /**
     * This method is used to verify if the {@code Accept} header was settled into properties.
     *
     * @return  {@code boolean}
     */
    public boolean hasAccept() {

        if (this.accept == null) { return false; }

        return true;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy