@ Override public void putEntry ( final AtomRequest areq , final Entry entry ) throws AtomException { LOG . debug ( "putEntry" ) ; final String [ ] pathInfo = StringUtils . split ( areq . getPathInfo ( ) , "/" ) ; final String handle = pathInfo [ 0 ] ; final String collection = pathInfo [ 1 ] ; final String fileName = pathInfo [ 2 ] ; final FileBasedCollection col = service . findCollectionByHandle ( handle , collection ) ; try { col . updateEntry ( entry , fileName ) ; } catch ( final Exception fe ) { throw new AtomException ( fe ) ; } }
Update entry specified by pathInfo and posted entry .