package io.vertx.ext.web;
import io.vertx.codegen.annotations.DataObject;
import io.vertx.core.json.JsonObject;
@DataObject(generateConverter = true)
public class Http2PushMapping {
private String filePath;
private String extensionTarget;
private boolean noPush;
public Http2PushMapping(Http2PushMapping other) {
this.filePath = other.filePath;
this.extensionTarget = other.extensionTarget;
this.noPush = other.noPush;
}
public Http2PushMapping() {
}
public Http2PushMapping(JsonObject json) {
Http2PushMappingConverter.fromJson(json, this);
}
public Http2PushMapping(String filePath, String extensionTarget, boolean noPush) {
this.filePath = filePath;
this.extensionTarget = extensionTarget;
this.noPush = noPush;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public String getExtensionTarget() {
return extensionTarget;
}
public void setExtensionTarget(String extensionTarget) {
this.extensionTarget = extensionTarget;
}
public boolean isNoPush() {
return noPush;
}
public void setNoPush(boolean noPush) {
this.noPush = noPush;
}
public JsonObject toJson() {
JsonObject json = new JsonObject();
Http2PushMappingConverter.toJson(this, json);
return json;
}
}