org.labkey.remoteapi.assay.GetAssayRunCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of labkey-client-api Show documentation
Show all versions of labkey-client-api Show documentation
The client-side library for Java developers is a separate JAR from the LabKey Server code base. It can be used by any Java program, including another Java web application.
The newest version!
package org.labkey.remoteapi.assay;
import org.json.simple.JSONObject;
import org.labkey.remoteapi.PostCommand;
/**
* Command for obtaining information about a run in a particular folder.
*/
public class GetAssayRunCommand extends PostCommand
{
private String _lsid;
public GetAssayRunCommand(GetAssayRunCommand source)
{
super(source);
_lsid = source.getLsid();
}
public GetAssayRunCommand(String lsid)
{
super("assay", "getAssayRun");
_lsid = lsid;
}
public String getLsid()
{
return _lsid;
}
public void setLsid(String lsid)
{
_lsid = lsid;
}
@Override
public GetAssayRunCommand copy()
{
return new GetAssayRunCommand(this);
}
@Override
public JSONObject getJsonObject()
{
JSONObject result = new JSONObject();
result.put("lsid", _lsid);
return result;
}
@Override
protected GetAssayRunResponse createResponse(String text, int status, String contentType, JSONObject json)
{
return new GetAssayRunResponse(text, status, contentType, json, this);
}
}