public interface PreventSqlInjConfigProvider extends RemoteXMLFileManagerProvider
MARK_STRING
限定符和类型 | 方法和说明 |
---|---|
boolean |
addCustomForbidWord(java.lang.String keyword) |
boolean |
addCustomSpecialChar(java.lang.String specialCharacters) |
boolean |
addForbidWord(java.lang.String keyword) |
boolean |
addSpecialChar(java.lang.String specialCharacters) |
void |
generateDefaultConfig() |
JSONObject |
getCustomForbidWordJson(JSONObject jo) |
JSONObject |
getCustomSpecialCharJson(JSONObject jo) |
JSONObject |
getForbidWordJson(JSONObject jo) |
java.lang.String[] |
getForbidWords() |
java.lang.String[] |
getSpecialChar() |
JSONObject |
getSpecialCharJson(JSONObject jo) |
JSONObject |
getUnSelectedForbidWordJson(JSONObject jo) |
JSONObject |
getUnSelectedSpecialCharJson(JSONObject jo) |
boolean |
isUseEscapeSpecialChar() |
boolean |
isUseForbidWord() |
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
boolean |
removeCustomForbidWord(java.lang.String[] keywords) |
boolean |
removeCustomSpecialChar(java.lang.String[] specialChar) |
boolean |
setForbidWord(java.lang.String wordStr) |
boolean |
setSpecialChar(java.lang.String charStr) |
void |
setUseEscapeSpecialChar(boolean useEscapeSpecialChar) |
void |
setUseForbidWord(boolean useForbidWord) |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
fileName, readFromInputStream, readXMLFile
boolean addForbidWord(java.lang.String keyword)
boolean addCustomForbidWord(java.lang.String keyword)
boolean removeCustomForbidWord(java.lang.String[] keywords)
boolean addSpecialChar(java.lang.String specialCharacters)
boolean addCustomSpecialChar(java.lang.String specialCharacters)
boolean removeCustomSpecialChar(java.lang.String[] specialChar)
boolean setForbidWord(java.lang.String wordStr)
boolean setSpecialChar(java.lang.String charStr)
JSONObject getForbidWordJson(JSONObject jo) throws JSONException
JSONException
JSONObject getCustomForbidWordJson(JSONObject jo) throws JSONException
JSONException
JSONObject getSpecialCharJson(JSONObject jo) throws JSONException
JSONException
JSONObject getUnSelectedForbidWordJson(JSONObject jo) throws JSONException
JSONException
JSONObject getUnSelectedSpecialCharJson(JSONObject jo) throws JSONException
JSONException
JSONObject getCustomSpecialCharJson(JSONObject jo) throws JSONException
JSONException
void setUseForbidWord(boolean useForbidWord)
void setUseEscapeSpecialChar(boolean useEscapeSpecialChar)
boolean isUseForbidWord()
boolean isUseEscapeSpecialChar()
void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
void writeXML(XMLPrintWriter writer)
XMLWriter
void generateDefaultConfig()
java.lang.String[] getForbidWords()
java.lang.String[] getSpecialChar()