com.xceptance.xlt.engine.har.model.HarParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xlt Show documentation
Show all versions of xlt Show documentation
XLT (Xceptance LoadTest) is an extensive load and performance test tool developed and maintained by Xceptance.
package com.xceptance.xlt.engine.har.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Posted parameters, if any (embedded in postData object).
*
* @see specification
*/
@JsonPropertyOrder(
{
"name", "value", "fileName", "contentType", "comment"
})
public class HarParam
{
private final String name;
private final String value;
private final String fileName;
private final String contentType;
private final String comment;
@JsonCreator
public HarParam(@JsonProperty("name") String name, @JsonProperty("value") String value, @JsonProperty("fileName") String fileName,
@JsonProperty("contentType") String contentType, @JsonProperty("comment") String comment)
{
this.name = name;
this.value = value;
this.fileName = fileName;
this.contentType = contentType;
this.comment = comment;
}
public String getName()
{
return name;
}
public String getFileName()
{
return fileName;
}
public String getValue()
{
return value;
}
public String getContentType()
{
return contentType;
}
public String getComment()
{
return comment;
}
@Override
public String toString()
{
return "HarParam [name = " + name + ", fileName = " + fileName + ", value = " + value + ", contentType = " + contentType +
", comment = " + comment + "]";
}
public static class Builder
{
private String name;
private String value;
private String fileName;
private String contentType;
private String comment;
public Builder withName(String name)
{
this.name = name;
return this;
}
public Builder withValue(String value)
{
this.value = value;
return this;
}
public Builder withFileName(String fileName)
{
this.fileName = fileName;
return this;
}
public Builder withContentType(String contentType)
{
this.contentType = contentType;
return this;
}
public Builder withComment(String comment)
{
this.comment = comment;
return this;
}
public HarParam build()
{
return new HarParam(name, value, fileName, contentType, comment);
}
}
}