本文整理汇总了Java中com.wordnik.swagger.model.ApiDescription类的典型用法代码示例。如果您正苦于以下问题:Java ApiDescription类的具体用法?Java ApiDescription怎么用?Java ApiDescription使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ApiDescription类属于com.wordnik.swagger.model包,在下文中一共展示了ApiDescription类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isParamAllowed
import com.wordnik.swagger.model.ApiDescription; //导入依赖的package包/类
@Override
public boolean isParamAllowed(Parameter parameter, Operation operation, ApiDescription api, Map<String, List<String>> params,
Map<String, String> cookies, Map<String, List<String>> headers) {
if (parameter.paramAccess().nonEmpty()) {
return !parameter.paramAccess().get().equals("internal");
}
return super.isParamAllowed(parameter, operation, api, params, cookies, headers);
}
示例2: isParamAllowed
import com.wordnik.swagger.model.ApiDescription; //导入依赖的package包/类
@Override
public boolean isParamAllowed(Parameter parameter, Operation operation, ApiDescription apiDescription,
Map<String, List<String>> stringListMap, Map<String, String> stringStringMap,
Map<String, List<String>> stringListMap2) {
if (parameter.paramAccess().isDefined() && parameter.paramAccess().get().equals("internal")) {
return false;
}
return true;
}
示例3: isOperationAllowed
import com.wordnik.swagger.model.ApiDescription; //导入依赖的package包/类
@Override
public boolean isOperationAllowed(Operation operation, ApiDescription apiDescription, Map<String, List<String>> map, Map<String, String> map1, Map<String, List<String>> map2) {
return true;
}
示例4: isParamAllowed
import com.wordnik.swagger.model.ApiDescription; //导入依赖的package包/类
@Override
public boolean isParamAllowed(Parameter parameter, Operation operation, ApiDescription apiDescription, Map<String, List<String>> map, Map<String, String> map1, Map<String, List<String>> map2) {
return !(parameter.paramAccess().isDefined() && parameter.paramAccess().get().equals("internal"));
}
示例5: isOperationAllowed
import com.wordnik.swagger.model.ApiDescription; //导入依赖的package包/类
@Override
public boolean isOperationAllowed(Operation operation, ApiDescription apiDescription,
Map<String, List<String>> stringListMap, Map<String, String> stringStringMap,
Map<String, List<String>> stringListMap2) {
return true;
}