io.leopard.httpnb.Param Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leopard-boot-httpnb Show documentation
Show all versions of leopard-boot-httpnb Show documentation
Http操作类库。支持Get、Post、文件上传等常用操作。可在TopNB查看耗时统计信息。
The newest version!
package io.leopard.httpnb;
public class Param {
private String name;
private Object value;
private boolean key;
public Param() {
}
public Param(String name, Object value) {
this(name, value, false);
}
public Param(String name, Object value, boolean key) {
this.name = name;
this.value = value;
this.key = key;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
public boolean isKey() {
return key;
}
public void setKey(boolean key) {
this.key = key;
}
@Override
public String toString() {
return "name:" + name + " value:" + value + " key:" + key;
}
}