public final class FileManagementWsImpl extends CppWebServiceServerCall implements FileDownloader {
private static final String SERVICE_NAME = "konga_file_management";
private FileManager getFileManager(ServerCallback callback) throws IntegrationServerException {
FileManagerServiceLocator locator = new FileManagerServiceLocator();
try {
StringBuilder sb = new StringBuilder();
if (!getConfiguration().configureWebservice(locator, SERVICE_NAME, sb, callback)) {
return null;
}
locator.setkonga_file_managementEndpointAddress(sb.toString());
return locator.getkonga_file_management();
} catch (ServiceException e) {
throw new IntegrationServerException("Failed to call web service: " + e.getMessage(), e);
}
}