private static ResponseConfig convert(ApiOperation apiOperation) { ResponseConfig responseConfig = new ResponseConfig(); responseConfig.setCode(apiOperation.code()); responseConfig.setResponseClass(apiOperation.response()); responseConfig.setResponseContainer(apiOperation.responseContainer()); responseConfig.setResponseReference(apiOperation.responseReference()); responseConfig.setResponseHeaders(apiOperation.responseHeaders()); return responseConfig; }
responseClass = apiOperation.response(); if (!apiOperation.responseContainer().isEmpty()) { responseContainer = apiOperation.responseContainer();
responseClassType = apiOperation.response(); if (!apiOperation.responseContainer().isEmpty()) { responseContainer = apiOperation.responseContainer();
private static String getResponseContainer(ApiOperation apiOperation) { return apiOperation == null ? null : StringUtils.defaultIfBlank(apiOperation.responseContainer(), null); }
private static String getResponseContainer(ApiOperation apiOperation) { return apiOperation == null ? null : StringUtils.defaultIfBlank(apiOperation.responseContainer(), null); }
@SuppressWarnings("Duplicates") @VisibleForTesting static ResolvedType getResolvedType( ApiOperation annotation, TypeResolver resolver, ResolvedType defaultType) { if (null != annotation) { Class<?> response = annotation.response(); String responseContainer = annotation.responseContainer(); if (resolvedType(resolver, response, responseContainer).isPresent()) { return resolvedType(resolver, response, responseContainer).get(); } } return defaultType; }
private static ResponseConfig convert(ApiOperation apiOperation) { ResponseConfig responseConfig = new ResponseConfig(); responseConfig.setCode(apiOperation.code()); responseConfig.setResponseClass(apiOperation.response()); responseConfig.setResponseContainer(apiOperation.responseContainer()); responseConfig.setResponseReference(apiOperation.responseReference()); responseConfig.setResponseHeaders(apiOperation.responseHeaders()); return responseConfig; }
responseType = apiOperation.response(); if (!apiOperation.responseContainer().isEmpty()) { responseContainer = apiOperation.responseContainer();
responseType = apiOperation.response(); if (!"".equals(apiOperation.responseContainer())) { responseContainer = apiOperation.responseContainer();
responseType = apiOperation.response(); if (!"".equals(apiOperation.responseContainer())) { responseContainer = apiOperation.responseContainer();
responseType = apiOperation.response(); if (!apiOperation.responseContainer().isEmpty()) { responseContainer = apiOperation.responseContainer();
if (!apiOperation.responseContainer().isEmpty()) { swaggerReturnType = (DecoratedTypeMirror) this.env.getTypeUtils().getArrayType(swaggerReturnType); swaggerReturnType.setDeferredDocComment(new ReturnDocComment(this));
responseType = apiOperation.response(); if (!apiOperation.responseContainer().isEmpty()) { responseContainer = apiOperation.responseContainer();