CrudClient

public class CrudClient

Client for TG-Crud

Author:Ubbo Veentjer

See also: TG-Crud documentation

Fields

DEFAULT_ENDPOINT

public static final String DEFAULT_ENDPOINT

URL of the tgcrud endpoint on textgrid production system (textgridlab.org)

Constructors

CrudClient

public CrudClient(String endpoint)

Setup the tgcrud client As endpoint the DEFAULT_ENDPOINT may be used to work with the textgrid production system textgridlab.org

Parameters:
  • endpoint
    • the http(s) url of tgcrud service

Methods

create

public CreateOperation create()

Prepare a Create operation

See also: info.textgrid.clients.tgcrud.CreateOperation, TG-crud API - Create

delete

public DeleteOperation delete()

Prepare a Delete operation

See also: info.textgrid.clients.tgcrud.DeleteOperation, TG-crud API - Delete

enableGzipCompression

public CrudClient enableGzipCompression()

Turn on GZIP compression for communication with service

read

public ReadOperation read()

Prepare a Read operation

See also: info.textgrid.clients.tgcrud.ReadOperation, TG-crud API - Read

update

public UpdateOperation update()

Prepare an Update operation

See also: info.textgrid.clients.tgcrud.UpdateOperation, TG-crud API - Update