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

me.vcoder.httplogger.TraceableRequest Maven / Gradle / Ivy

The newest version!
package me.vcoder.httplogger;

import java.net.URI;
import java.util.List;
import java.util.Map;

/**
 * @author baodn
 * Created on 11 Apr 2018
 */
public interface TraceableRequest {
    /**
     * Returns the method (GET, POST, etc) of the request.
     * @return the method
     */
    String getMethod();

    /**
     * Returns the URI of the request.
     * @return the URI
     */
    URI getUri();

    /**
     * Returns a modifiable copy of the headers of the request.
     * @return the headers
     */
    Map> getHeaders();

    /**
     * Returns the remote address from which the request was sent, if available.
     * @return the remote address or {@code null}
     */
    String getRemoteAddress();

    /**
     * Get Request Body as String
     * @return HTTP Request Body
     */
    String getBody();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy