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

com.vmware.transport.core.autogen.IRestApiBridge Maven / Gradle / Ivy

Go to download

Transport is a full stack, simple, fast, expandable application event bus for your applications. It provides a standardized and simple API, implemented in multiple languages, to allow any individual component inside your applications to talk to one another. This is the Java implementation of the Transport library.

The newest version!
/*
 * Copyright 2019-2020 VMware, Inc.
 * SPDX-License-Identifier: BSD-2-Clause
 *
 */
package com.vmware.transport.core.autogen;

import com.vmware.transport.bridge.Request;
import com.vmware.transport.bridge.Response;
import com.vmware.transport.bus.model.Message;
import org.springframework.http.HttpMethod;


/**
 * Generic lambda interface that allows for making ReST or Websocket calls for an API from the API layer to the Service layer
 *
 * @param  The service request object
 * @param The service response object
 */
public interface IRestApiBridge {
    void apiRequest(
            IApiType apiType,
            HttpMethod method,
            String uri,
            String jsonBody,
            IApiSuccessHandler successHandler,
            IApiFailureHandler failureHandler,
            String apiClassName,
            Message message
    );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy