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

com.braintreegateway.Request Maven / Gradle / Ivy

package com.braintreegateway;

import java.util.Map;

/**
 * Abstract class for fluent interface request builders.
 */
public abstract class Request {
    public String toXML() {
        throw new UnsupportedOperationException();
    }

    public String toQueryString(String parent) {
        throw new UnsupportedOperationException();
    }

    public String toQueryString() {
        throw new UnsupportedOperationException();
    }

    public Map toGraphQLVariables() {
        throw new UnsupportedOperationException();
    }

    public String getKind() {
        return null;
    }

    protected String buildXMLElement(Object element) {
        return RequestBuilder.buildXMLElement(element);
    }

    protected String buildXMLElement(String name, Object element) {
        return RequestBuilder.buildXMLElement(name, element);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy