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

cn.featherfly.web.upload.policy.AbstractUploadPolicy Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version

package cn.featherfly.web.upload.policy;

import cn.featherfly.web.upload.UploadPolicy;

/**
 * 

* 抽象上传策略. *

* * @author 钟冀 */ public abstract class AbstractUploadPolicy implements UploadPolicy{ /** * 使用MessageCode获取DisAllowMessage, * code为 具体实现类名.disAllowMessage,例如 X.disAllowMessage,不包含包名 * @return DisAllowMessage */ protected String getDisAllowKey() { return this.getClass().getSimpleName() + ".disAllowMessage"; } /** * {@inheritDoc} */ @Override public String toString() { return this.getClass().getName(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy