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

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

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

import javax.annotation.Nullable;
import javax.servlet.ServletRequest;

/**
 * Herts http request
 *
 * @author Herts Contributer
 */
public interface HertsHttpRequest {

    /**
     * Get ServletRequest.
     * Depends on jakarta.servlet.ServletRequest
     *
     * @return jakarta.servlet.ServletRequest
     */
    ServletRequest getRequest();

    /**
     * Get Header value
     *
     * @param headerName Header name
     * @return Value
     */
    @Nullable
    String getHeader(String headerName);

    /**
     * Get remote address
     *
     * @return Remote address
     */
    String getRemoteAddr();

    /**
     * Get local address
     *
     * @return Local address
     */
    String getLocalAddr();

    /**
     * Get header auth type
     *
     * @return Auth Type
     */
    String getAuthType();

    /**
     * Get Cookies
     *
     * @return Cookies
     */
    HertsHttpRequestImpl.Cookie[] getCookies();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy