top.cutexingluo.tools.bridge.servlet.HttpServletResponseData 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.HttpServletResponse;
/**
* HttpServletResponse 封装类
* 目的:兼容多版本
*
* @author XingTian
* @version 1.0.0
* @date 2024/7/16 14:27
* @since 1.1.1
*/
@Data
@AllArgsConstructor
public class HttpServletResponseData implements IData {
/**
* HttpServletResponse
*/
protected HttpServletResponse response;
@Contract("_ -> new")
public static @NotNull HttpServletResponseData of(HttpServletResponse response) {
return new HttpServletResponseData(response);
}
@Override
public HttpServletResponse data() {
return response;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy