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

com.mozu.api.MozuClient Maven / Gradle / Ivy

Go to download

Mozu Java is a SDK that enables you to create robust Java applications that integrate with the Mozu platform

There is a newer version: 2.6.1-RC1
Show newest version
package com.mozu.api;

import java.io.InputStream;
import java.util.Map;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.mozu.api.ApiContext;
import com.mozu.api.MozuUrl;

public interface MozuClient {
    public void setContext(ApiContext apiContext);

    public void setBaseAddress(String baseAddress);

    public void addHeader(String header, String value);

    public void setVerb(String verb);

    public void setResourceUrl(MozuUrl resourceUrl);

    public  void setBody(TBody body) throws JsonProcessingException;

    public void setBody(InputStream body) throws JsonProcessingException;

    public void setBody(String body);

    public String getStringResult() throws Exception;

    public TResult getResult() throws Exception;

    public void executeRequest() throws Exception;

    public TResult executePostRequest(Object bodyObject, String resourceUrl, Map headers) throws ApiException;

    public TResult executePutRequest(Object bodyObject, String resourceUrl, Map headers) throws ApiException;

    public void executeDeleteRequest(String resourceUrl, Map headers) throws ApiException;

    public void cleanupHttpConnection () throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy