public String removeAgreement ( String agreementId ) { Invocation invocation = getJerseyClient ( ) . target ( getEndpoint ( ) + "/agreements/" + agreementId ) . request ( ) . header ( "Accept" , MediaType . APPLICATION_JSON ) . header ( "Content-Type" , MediaType . APPLICATION_JSON ) . buildDelete ( ) ; //SLA Core returns a text message if the response was succesfully not the object, this is not the best behaviour return invocation . invoke ( ) . readEntity ( String . class ) ; }
Creates proxied HTTP DELETE request to SeaClouds SLA core which removes the SLA from the SLA Core