Examples of WafType


Examples of com.denimgroup.threadfix.data.entities.WafType

    public void doUpdate(String fileName, BufferedReader bufferedReader) throws IOException {
        LOG.info("Updating mapping for file " + fileName);

        State state = State.START;

        WafType type = null;

        String line = bufferedReader.readLine();
        while (line != null) {

            String trimmedLine = line.trim();
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.WafType

            wafRuleDirectiveDao.saveOrUpdate(directive);
        }
    }

    private WafType processName(String trimmedLine) {
        WafType maybeType = wafTypeDao.retrieveByName(trimmedLine);

        if (maybeType == null) {
            WafType type = new WafType();
            type.setName(trimmedLine);
            type.setInitialId(100000);
            type.setWafRuleDirectives(listOf(WafRuleDirective.class));
            wafTypeDao.saveOrUpdate(type);
            return type;
        } else {
            return maybeType;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.