org.bonitasoft.web.designer.model.data.VariableAdvancedOptions Maven / Gradle / Ivy
/**
* Copyright (C) 2015 BonitaSoft S.A.
* BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package org.bonitasoft.web.designer.model.data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.bonitasoft.web.designer.model.JsonViewPersistence;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonView;
@JsonFilter("valueAsArray")
public class VariableAdvancedOptions {
//Bind to a UI-Designer to store information at runtime
private String headers;
private String statusCode;
private String failedResponseValue;
@JsonCreator
public VariableAdvancedOptions(@JsonProperty("headers") String headers,
@JsonProperty("statusCode") String statusCode,
@JsonProperty("failedResponseValue") String failedResponseValue) {
this.headers = headers;
this.statusCode = statusCode;
this.failedResponseValue = failedResponseValue;
}
@JsonView({ JsonViewPersistence.class })
public String getHeaders() {
return headers;
}
public void setType(String headers) {
this.headers = headers;
}
@JsonView({ JsonViewPersistence.class })
public String getStatusCode() {
return statusCode;
}
public void setStatusCode(String statusCode) {
this.statusCode = statusCode;
}
@JsonView({ JsonViewPersistence.class })
public String getFailedResponseValue() {
return failedResponseValue;
}
public void setFailedResponseValue(String failedResponseValue) {
this.failedResponseValue = failedResponseValue;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("headers", headers)
.append("statusCode", statusCode)
.append("failedResponseValue", failedResponseValue).toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy