public HttpPut createTriplesPutMethod ( final String path , final InputStream updatedProperties , final String contentType ) throws FedoraException { if ( updatedProperties == null ) { throw new FedoraException ( "updatedProperties must not be null" ) ; } else if ( isBlank ( contentType ) ) { throw new FedoraException ( "contentType must not be blank" ) ; } final HttpPut put = new HttpPut ( repositoryURL + path ) ; put . setEntity ( new InputStreamEntity ( updatedProperties ) ) ; put . setHeader ( "Content-Type" , contentType ) ; return put ; }
Create a request to update triples .