本文整理匯總了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;
}