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

com.atlassian.connect.spring.internal.jwt.CanonicalHttpServletRequest Maven / Gradle / Ivy

package com.atlassian.connect.spring.internal.jwt;

import jakarta.servlet.http.HttpServletRequest;

import java.util.Map;

public class CanonicalHttpServletRequest implements CanonicalHttpRequest {
    
    private final HttpServletRequest request;

    public CanonicalHttpServletRequest(final HttpServletRequest request) {
        this.request = request;
    }

    @Override
    public String getMethod() {
        return request.getMethod();
    }

    @Override
    public String getRelativePath() {
        return CanonicalRequestUtil.getRelativePath(request.getRequestURI(), request.getContextPath());
    }

    @Override
    public Map getParameterMap() {
        return request.getParameterMap();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy