public class CreateRequest extends Request
gsonBuilder
Constructor and Description |
---|
CreateRequest(String type,
com.google.gson.JsonObject obj)
Create a new create request with the specified type and values.
|
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Get the JSON encoded string representation of the object to be created.
|
Fetch |
getFetch()
Get the current list of fields to be returned on the created object.
|
void |
setFetch(Fetch fetch)
Set the current list of fields to be returned on the created object.
|
String |
toUrl()
Convert this request into a url compatible with the WSAPI.
|
addParam, getGsonBuilder, getParams, setGsonBuilder, setParams
public CreateRequest(String type, com.google.gson.JsonObject obj)
type
- the WSAPI object type to be created, e.g. Defectobj
- the JSON representation of the values of the objectpublic String getBody()
public Fetch getFetch()
Get the current list of fields to be returned on the created object.
By default only the underscore fields such as _ref will be returned in the response.public void setFetch(Fetch fetch)
fetch
- the list of fields to be returned.Copyright © 2016. All Rights Reserved.