private void initRepositoryFeatures ( ) { if ( this . repositoryVersion == null ) { // Default features this . repositoryVersion = new DefaultVersion ( Resources . VERSION10 ) ; this . filterable = false ; this . sortable = false ; // Get remote features CloseableHttpResponse response ; try { response = getRESTResource ( this . rootUriBuider ) ; } catch ( IOException e ) { // Assume it's a 1.0 repository return ; } try { Repository repository = getRESTObject ( response ) ; this . repositoryVersion = new DefaultVersion ( repository . getVersion ( ) ) ; this . filterable = repository . isFilterable ( ) == Boolean . TRUE ; this . sortable = repository . isSortable ( ) == Boolean . TRUE ; } catch ( Exception e ) { LOGGER . error ( "Failed to get repository features" , e ) ; } } }
Check what is supported by the remote repository .