org.jboss.resteasy.reactive.common.model.RestClientInterface Maven / Gradle / Ivy
package org.jboss.resteasy.reactive.common.model;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.jboss.resteasy.reactive.common.util.URLUtils;
public class RestClientInterface {
/**
* The class name of the interface
*/
private String className;
/**
* The class path
*/
private String path;
/**
* The resource methods
*/
private final List methods = new ArrayList<>();
private Set pathParameters = new HashSet<>();
private boolean encoded = false;
public String getClassName() {
return className;
}
public RestClientInterface setClassName(String className) {
this.className = className;
return this;
}
public String getPath() {
return path;
}
public RestClientInterface setPath(String path) {
this.path = path;
if (path != null) {
pathParameters.clear();
URLUtils.parsePathParameters(path, pathParameters);
}
return this;
}
public List getMethods() {
return methods;
}
public Set getPathParameters() {
return pathParameters;
}
public RestClientInterface setPathParameters(Set pathParameters) {
this.pathParameters = pathParameters;
return this;
}
public boolean isEncoded() {
return encoded;
}
public RestClientInterface setEncoded(boolean encoded) {
this.encoded = encoded;
return this;
}
}