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

icu.easyj.web.filter.BaseFilterProperties Maven / Gradle / Ivy

/*
 * Copyright 2021 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package icu.easyj.web.filter;

import java.util.List;

/**
 * 过滤器配置基类
 *
 * @author wangliang181230
 */
public class BaseFilterProperties implements IFilterProperties {

	/**
	 * 过滤器启用状态,默认:生效
*/ protected boolean enabled = true; /** * 过滤器使用状态,默认:启用
* volatile关键字是必须的 */ protected volatile boolean disabled = false; /** * 过滤器执行顺序 */ protected Integer order; /** * 过滤器需要过滤的请求,默认:全部都过滤 */ protected List urlPatterns = null; /** * 过滤器不想过滤的请求,默认:无排除项 */ protected List exclusions = null; //region Getter、Setter @Override public boolean isEnabled() { return enabled; } @Override public void setEnabled(boolean enabled) { this.enabled = enabled; } @Override public boolean isDisabled() { return disabled; } @Override public void setDisabled(boolean disabled) { this.disabled = disabled; } @Override public Integer getOrder() { return order; } @Override public void setOrder(int order) { this.order = order; } @Override public List getUrlPatterns() { return urlPatterns; } @Override public void setUrlPatterns(List urlPatterns) { this.urlPatterns = urlPatterns; } @Override public List getExclusions() { return exclusions; } @Override public void setExclusions(List exclusions) { this.exclusions = exclusions; } //endregion }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy