All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.labkey.remoteapi.GetCommand Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 6.2.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy