com.hzlinks.swagger.rpc.reader.ReaderContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swaggerpc-springboot-starter Show documentation
Show all versions of swaggerpc-springboot-starter Show documentation
swagger for dubbo rpc with spring boot
package com.hzlinks.swagger.rpc.reader;
import io.swagger.models.Swagger;
import io.swagger.models.parameters.Parameter;
import java.util.List;
/**
* The ReaderContext
class is wrapper for the Reader
parameters.
*/
public class ReaderContext {
private Swagger swagger;
private Class> refCls;
private Class> interfaceCls;
private String parentPath;
private String parentHttpMethod;
private boolean readHidden;
private List parentConsumes;
private List parentProduces;
private List parentTags;
private List parentParameters;
public ReaderContext(Swagger swagger, Class> refCls, Class> interfaceCls, String parentPath,
String parentHttpMethod, boolean readHidden, List parentConsumes,
List parentProduces, List parentTags,
List parentParameters) {
setSwagger(swagger);
setRefCls(refCls);
setInterfaceCls(interfaceCls);
setParentPath(parentPath);
setParentHttpMethod(parentHttpMethod);
setReadHidden(readHidden);
setParentConsumes(parentConsumes);
setParentProduces(parentProduces);
setParentTags(parentTags);
setParentParameters(parentParameters);
}
public Swagger getSwagger() {
return swagger;
}
public void setSwagger(Swagger swagger) {
this.swagger = swagger;
}
public Class> getRefCls() {
return refCls;
}
public void setRefCls(Class> cls) {
this.refCls = cls;
}
public Class> getInterfaceCls() {
return interfaceCls;
}
public Class> getCls() {
return refCls;
}
public void setInterfaceCls(Class> interfaceCls) {
this.interfaceCls = interfaceCls;
}
public String getParentPath() {
return parentPath;
}
public void setParentPath(String parentPath) {
this.parentPath = parentPath;
}
public String getParentHttpMethod() {
return parentHttpMethod;
}
public void setParentHttpMethod(String parentHttpMethod) {
this.parentHttpMethod = parentHttpMethod;
}
public boolean isReadHidden() {
return readHidden;
}
public void setReadHidden(boolean readHidden) {
this.readHidden = readHidden;
}
public List getParentConsumes() {
return parentConsumes;
}
public void setParentConsumes(List parentConsumes) {
this.parentConsumes = parentConsumes;
}
public List getParentProduces() {
return parentProduces;
}
public void setParentProduces(List parentProduces) {
this.parentProduces = parentProduces;
}
public List getParentTags() {
return parentTags;
}
public void setParentTags(List parentTags) {
this.parentTags = parentTags;
}
public List getParentParameters() {
return parentParameters;
}
public void setParentParameters(List parentParameters) {
this.parentParameters = parentParameters;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy