com.networknt.sanitizer.SanitizerConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sanitizer Show documentation
Show all versions of sanitizer Show documentation
A handler that sanitize cross site scripting for request
package com.networknt.sanitizer;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
* Sanitizer configuration class
*
* @author Steve Hu
*/
public class SanitizerConfig {
boolean enabled;
boolean sanitizeBody;
boolean sanitizeHeader;
public SanitizerConfig() {
}
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public boolean isSanitizeBody() {
return sanitizeBody;
}
public void setSanitizeBody(boolean sanitizeBody) {
this.sanitizeBody = sanitizeBody;
}
public boolean isSanitizeHeader() {
return sanitizeHeader;
}
public void setSanitizeHeader(boolean sanitizeHeader) {
this.sanitizeHeader = sanitizeHeader;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy