(Quick Reference)



Invokes the PUT method.


DSL Usage

def response = jerseyRequestBuilder.put {
    uri = "http://example.com/resource"
    body = "payload"

Quick Usage

def response = jerseyRequestBuilder.put("http://example.com/resource", "payload")

Builder Usage

RequestProperties requestProperties = new RequestProperties()
requestProperties.uri = "http://example.com/resource"
requestProperties.body = "payload"
def response = jerseyRequestBuilder.put(requestProperties)


Invokes the PUT method against the requested URI. The return from this method depends on the options set on the request and the response from the server.

The PUT method can send, but does not require, a body. The body and form properties are used in this method.