public TaskSummary deployApplication ( String tosca ) throws IOException { Entity content = Entity . entity ( tosca , "application/x-yaml" ) ; Invocation invocation = getJerseyClient ( ) . target ( getEndpoint ( ) + "/v1/applications" ) . request ( ) . buildPost ( content ) ; return invocation . invoke ( ) . readEntity ( TaskSummary . class ) ; }
Creates a proxied HTTP POST request to Apache Brooklyn to deploy a new application