class OrientPyPiUploadHandler extends UploadHandlerSupport {

  @Override
  public Content handle(
      final Repository repository, final File content, final String path) throws IOException
  {
    if (content.getName().endsWith(".asc")) {
      return importSignatureFile(content, path, repository);
    }
    else {
      return importPackageFile(content, repository);
    }
  }

  @Inject public  OrientPyPiUploadHandler(
      final ContentPermissionChecker contentPermissionChecker,
      @Named("simple") final VariableResolverAdapter variableResolverAdapter,
      final Set<UploadDefinitionExtension> uploadDefinitionExtensions);

}