com.itcoon.common.tracelog.config.properties.HttpTraceLogProperties Maven / Gradle / Ivy
package com.itcoon.common.tracelog.config.properties;
import com.google.common.collect.Lists;
import com.itcoon.common.tracelog.enums.LogSegment;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.http.MediaType;
import java.util.Collections;
import java.util.List;
@ConfigurationProperties(prefix = "itcoon.web.trace-log")
public class HttpTraceLogProperties {
/**
* 是否启用traceLog
*/
private Boolean enable = true;
/**
* 简化记录部分
*/
private List segments = Collections.emptyList();
/**
* url白名单
*/
private List includeUris = Lists.newArrayList("/**");
private List excludeUris = Lists.newArrayList();
/**
* 内容类型黑名单
*/
private List ignoreContentTypes = Lists.newArrayList();
public List getIncludeUris() {
return includeUris;
}
public void setIncludeUris(List includeUris) {
this.includeUris = includeUris;
}
public List getExcludeUris() {
return excludeUris;
}
public void setExcludeUris(List excludeUris) {
this.excludeUris = excludeUris;
}
public List getIgnoreContentTypes() {
return ignoreContentTypes;
}
public void setIgnoreContentTypes(List ignoreContentTypes) {
this.ignoreContentTypes = ignoreContentTypes;
}
public Boolean getEnable() {
return enable;
}
public void setEnable(Boolean enable) {
this.enable = enable;
}
public List getSegments() {
return segments;
}
public void setSegments(List segments) {
this.segments = segments;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy