org.labkey.remoteapi.GetCommand 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;
import org.apache.hc.client5.http.classic.methods.HttpGet;
import java.net.URI;
/** Base class for all commands that use get **/
public abstract class GetCommand extends Command
{
protected GetCommand(String controllerName, String actionName)
{
super(controllerName, actionName);
}
/**
* Creates the {@link HttpGet} instance used for the request. Override to modify the HttpGet object before use.
* @param uri the request uri
* @return The HttpUriRequest instance.
*/
@Override
protected HttpGet createRequest(URI uri)
{
return new HttpGet(uri);
}
}