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

org.vxwo.springboot.experience.web.handler.RequestLoggingHandler Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package org.vxwo.springboot.experience.web.handler;

import java.io.IOException;
import java.util.Map;
import org.vxwo.springboot.experience.web.entity.RequestLoggingEntity;

/**
 * The interface for request loging handle
 *
 * @author vxwo-team
 */

public interface RequestLoggingHandler {

    /**
    * Convert object to JSON String
    *
    * @param value  the object
    * @return  the JSON string
    * @throws IOException  if IO error occurs
    */
    String convertToString(Object value) throws IOException;

    /**
     * Convert object to Map
     *
     * @param value  the object
     * @return  the Map
     * @throws IOException  if IO error occurs
     */
    Map convertToMap(Object value) throws IOException;

    /**
     * Publish request logging to repository
     *
     * @param entity  the logging entity
     * @throws IOException  if IO error occurs
     */
    void publishRequestLogging(RequestLoggingEntity entity) throws IOException;
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy