/** * Creates a copy of passed configuration. */ public DefaultReaderConfig(ReaderConfig src) { if (src == null) { return; } setScanAllResources(src.isScanAllResources()); setIgnoredRoutes(src.getIgnoredRoutes()); }
private boolean isIgnored(String path) { for (String item : config.getIgnoredRoutes()) { final int length = item.length(); if (path.startsWith(item) && (path.length() == length || path.startsWith(PATH_DELIMITER, length))) { return true; } } return false; }
boolean readable = classReadable || (!isApiHidden && config.isScanAllResources()); if (apiOperation != null || config.isScanAllResources() || httpMethod != null || methodPath != null) { operation = parseMethod(cls, method, globalParameters, classApiResponses);
private boolean isIgnored(String path) { for (String item : config.getIgnoredRoutes()) { final int length = item.length(); if (path.startsWith(item) && (path.length() == length || path.startsWith(PATH_DELIMITER, length))) { return true; } } return false; }
boolean scanAll = !isApiHidden && config.isScanAllResources() && (hasPathAnnotation || isSubresource); if (apiOperation != null || config.isScanAllResources() || httpMethod != null || methodPath != null) { operation = parseMethod(cls, method, annotatedMethod, globalParameters, classApiResponses);
private boolean isIgnored(String path) { for (String item : config.getIgnoredRoutes()) { final int length = item.length(); if (path.startsWith(item) && (path.length() == length || path.startsWith(PATH_DELIMITER, length))) { return true; } } return false; }
boolean scanAll = !isApiHidden && config.isScanAllResources() && (hasPathAnnotation || isSubresource); if (apiOperation != null || config.isScanAllResources() || httpMethod != null || methodPath != null) { operation = parseMethod(cls, method, annotatedMethod, globalParameters, classApiResponses,pathParamNames);
private boolean isIgnored(String path) { for (String item : config.getIgnoredRoutes()) { final int length = item.length(); if (path.startsWith(item) && (path.length() == length || path.startsWith(PATH_DELIMITER, length))) { return true; } } return false; }
boolean readable = classReadable || (!isApiHidden && config.isScanAllResources()); if (apiOperation != null || config.isScanAllResources() || httpMethod != null || methodPath != null) { operation = parseMethod(cls, method, globalParameters, classApiResponses);