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

net.continuumsecurity.proxy.model.ScannerInfo Maven / Gradle / Ivy

There is a newer version: 5.1.4
Show newest version
package net.continuumsecurity.proxy.model;

import org.zaproxy.clientapi.core.ApiResponseSet;

/**
 * Created by stephen on 20/04/15.
 */
public class ScannerInfo {
    boolean enabled;
    int wascId;
    int cweId;

    public ScannerInfo(ApiResponseSet responseSet) {
        enabled = Boolean.parseBoolean(responseSet.getStringValue("enabled"));
        wascId = Integer.parseInt(responseSet.getStringValue("wascid"));
        cweId = Integer.parseInt(responseSet.getStringValue("cweid"));
    }

    public boolean isEnabled() {
        return enabled;
    }

    public int getWascId() {
        return wascId;
    }

    public int getCweId() {
        return cweId;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy