@ Override public boolean isCollectionURI ( final AtomRequest areq ) { LOG . debug ( "isCollectionURI" ) ; // workspace/collection-plural // if length is 2 and points to a valid collection then YES final String [ ] pathInfo = StringUtils . split ( areq . getPathInfo ( ) , "/" ) ; if ( pathInfo . length == 2 ) { final String handle = pathInfo [ 0 ] ; final String collection = pathInfo [ 1 ] ; if ( service . findCollectionByHandle ( handle , collection ) != null ) { return true ; } } return false ; }
Return true if specified pathinfo represents URI of a collection .