doc.com.rallydev.rest.request.UpdateRequest.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rally-rest-api Show documentation
Show all versions of rally-rest-api Show documentation
A java toolkit for interacting with the Rally Rest API
The newest version!
UpdateRequest (Rally Rest API for Java 2.2)
com.rallydev.rest.request
Class UpdateRequest
- java.lang.Object
-
- com.rallydev.rest.request.Request
-
- com.rallydev.rest.request.UpdateRequest
-
public class UpdateRequest
extends Request
Represents a WSAPI request to update an object.
-
-
Constructor Summary
Constructors
Constructor and Description
UpdateRequest(String ref,
JsonObject obj)
Create a new update request for the specified object and values.
-
Method Summary
Methods
Modifier and Type
Method and Description
String
getBody()
Get the JSON encoded string representation of the object to be updated.
Fetch
getFetch()
Get the current list of fields to be returned on the updated object.
void
setFetch(Fetch fetch)
Set the current list of fields to be returned on the updated object.
String
toUrl()
Convert this request into a url compatible with the WSAPI.
-
Methods inherited from class com.rallydev.rest.request.Request
addParam, getGsonBuilder, getParams, setGsonBuilder, setParams
-
-
Constructor Detail
-
UpdateRequest
public UpdateRequest(String ref,
JsonObject obj)
Create a new update request for the specified object and values.
- Parameters:
ref
- the ref of the WSAPI object to be created. May be absolute or relative, e.g. "/defect/12345"obj
- the JSON representation of the values of the object
-
Method Detail
-
getBody
public String getBody()
Get the JSON encoded string representation of the object to be updated.
- Returns:
- the JSON encoded object
-
getFetch
public Fetch getFetch()
Get the current list of fields to be returned on the updated object.
By default all fields will be returned in the response (fetch=true).
- Returns:
- the current list of fields.
-
setFetch
public void setFetch(Fetch fetch)
Set the current list of fields to be returned on the updated object.
- Parameters:
fetch
- the list of fields to be returned.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy