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

com.unzer.payment.communication.UnzerHttpRequest Maven / Gradle / Ivy

package com.unzer.payment.communication;

import java.net.URI;
import java.net.URISyntaxException;

/**
 * Abstraction for any http-request executed by the
 * {@code UnzerRestCommunication} and its basic implementation in
 * {@code AbstractUnzerRestCommunication}.
 */
public interface UnzerHttpRequest {

    void addHeader(String header, String value);

    @SuppressWarnings("checkstyle:AbbreviationAsWordInName")
    URI getURI() throws URISyntaxException;

    void setContent(String content, String encoding);

    UnzerHttpMethod getMethod();

    enum UnzerHttpMethod {
        GET, POST, DELETE, PUT, PATCH
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy