net.continuumsecurity.proxy.model.Script Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atf-toolbox Show documentation
Show all versions of atf-toolbox Show documentation
Automation Testing Framework Toolbox Provides simple automation.
package net.continuumsecurity.proxy.model;
import org.zaproxy.clientapi.core.ApiResponseSet;
/**
* Copyright VMware, Inc. All rights reserved. -- VMware Confidential
*/
public class Script {
String name;
String type;
String engine;
boolean error;
String description;
public Script(ApiResponseSet apiResponseSet) {
name = apiResponseSet.getStringValue("name");
type = apiResponseSet.getStringValue("type");
engine = apiResponseSet.getStringValue("engine");
error = Boolean.valueOf(apiResponseSet.getStringValue("error"));
description = apiResponseSet.getStringValue("description");
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getEngine() {
return engine;
}
public void setEngine(String engine) {
this.engine = engine;
}
public boolean isError() {
return error;
}
public void setError(boolean error) {
this.error = error;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}