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

org.hertsstack.http.InternalHttpCaller Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package org.hertsstack.http;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.lang.reflect.Method;

/**
 * Herts http caller interface
 *
 * @author Herts Contributer
 */
public interface InternalHttpCaller {

    /**
     * POST
     *
     * @param serviceName Herts service name
     * @param hertsMethod Method reflection
     * @param request     HttpServletRequest
     * @param response    HttpServletResponse
     * @throws Exception Get error
     */
    void post(String serviceName, Method hertsMethod, HttpServletRequest request, HttpServletResponse response) throws Exception;

    /**
     * Set metrics
     *
     * @param response HttpServletResponse
     * @throws IOException Get error
     */
    void setMetricsResponse(HttpServletResponse response) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy