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

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

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

import org.hertsstack.core.modelx.RegisteredMethod;
import org.hertsstack.serializer.MessageSerializer;
import org.hertsstack.metrics.HertsMetrics;

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

import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.util.List;
import java.util.concurrent.ConcurrentMap;

/**
 * Herts http simple class
 *
 * @author Herts Contributer
 */
class HertsHttpSimpleCaller extends HertsHttpCallerBase implements InternalHttpCaller {

    public HertsHttpSimpleCaller(Object coreObject, MessageSerializer hertsSerializer,
                                 ConcurrentMap registeredMethods) {
        super(coreObject, null, hertsSerializer, registeredMethods);
    }

    @Override
    public void post(String serviceName, Method hertsMethod, HttpServletRequest request, HttpServletResponse response) throws Exception {
        call(hertsMethod, request, response);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy