public ClientEntry getEntry ( final String uri ) throws ProponoException { final GetMethod method = new GetMethod ( uri ) ; authStrategy . addAuthentication ( httpClient , method ) ; try { httpClient . executeMethod ( method ) ; if ( method . getStatusCode ( ) != 200 ) { throw new ProponoException ( "ERROR HTTP status code=" + method . getStatusCode ( ) ) ; } final Entry romeEntry = Atom10Parser . parseEntry ( new InputStreamReader ( method . getResponseBodyAsStream ( ) ) , uri , Locale . US ) ; if ( ! romeEntry . isMediaEntry ( ) ) { return new ClientEntry ( service , this , romeEntry , false ) ; } else { return new ClientMediaEntry ( service , this , romeEntry , false ) ; } } catch ( final Exception e ) { throw new ProponoException ( "ERROR: getting or parsing entry/media, HTTP code: " , e ) ; } finally { method . releaseConnection ( ) ; } }
Get full entry specified by entry edit URI . Note that entry may or may not be associated with this collection .