top.cutexingluo.tools.bridge.servlet.HttpServletRequestData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xingtools-pkg-jdk8 Show documentation
Show all versions of xingtools-pkg-jdk8 Show documentation
xingtools 依赖core包,jdk 分类包,对不同的jdk版本提供兼容性
The newest version!
package top.cutexingluo.tools.bridge.servlet;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import top.cutexingluo.tools.common.base.IData;
import javax.servlet.http.HttpServletRequest;
/**
* HttpServletRequest 封装类
* 目的:兼容多版本
*
* @author XingTian
* @version 1.0.0
* @date 2024/7/16 14:27
* @since 1.1.1
*/
@Data
@AllArgsConstructor
public class HttpServletRequestData implements IData {
/**
* HttpServletRequest
*/
protected HttpServletRequest request;
@Contract("_ -> new")
public static @NotNull HttpServletRequestData of(HttpServletRequest request) {
return new HttpServletRequestData(request);
}
@Override
public HttpServletRequest data() {
return request;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy