org.labkey.remoteapi.assay.ProtocolResponse 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.
package org.labkey.remoteapi.assay;
import org.json.JSONObject;
import org.labkey.remoteapi.CommandResponse;
public class ProtocolResponse extends CommandResponse
{
private final Protocol _protocol;
public ProtocolResponse(String text, int statusCode, String contentType, JSONObject json)
{
super(text, statusCode, contentType, json);
_protocol = new Protocol((JSONObject) json.get("data"));
}
public Protocol getProtocol()
{
return _protocol;
}
}