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

io.github.dengchen2020.core.properties.ETagBuilder Maven / Gradle / Ivy

There is a newer version: 0.0.28
Show newest version
package io.github.dengchen2020.core.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * ETag配置
 * @author dengchen
 * @since 2024/8/6
 */
@ConfigurationProperties("dc.etag")
public class ETagBuilder {

    /**
     * 是否启用ETag
     */
    private boolean enabled = false;

    /**
     * 根据 RFC 7232,设置写入响应的 ETag 值是否应为弱值。
     * 

应使用 {@code } 对于参数名称 * "writeWeakETag" 在过滤器定义中 {@code web.xml}. * @since 4.3 * @see RFC 7232 section 2.3 */ private boolean writeWeakETag = false; public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public boolean isWriteWeakETag() { return writeWeakETag; } public void setWriteWeakETag(boolean writeWeakETag) { this.writeWeakETag = writeWeakETag; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy