(Quick Reference)

get

Purpose

Invokes the GET method.

Examples

DSL Usage

def response = jerseyRequestBuilder.get {
    uri = "http://example.com"
}

Quick Usage

def response = jerseyRequestBuilder.get("http://example.com")

Builder Usage

RequestProperties requestProperties = new RequestProperties()
requestProperties.uri = "http://example.com"
def response = jerseyRequestBuilder.get(requestProperties)

Description

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

GET requests do not contain an entity, so the form and body properties are ignored.