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

be.bagofwords.jobs.JobsHttpStatus Maven / Gradle / Ivy

package be.bagofwords.jobs;

import be.bagofwords.application.annotations.EagerBowComponent;
import be.bagofwords.web.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import spark.Request;
import spark.Response;

/**
 * Created by Koen Deschacht ([email protected]) on 9/8/14.
 */
@EagerBowComponent
public class JobsHttpStatus extends BaseController {

    @Autowired
    private JobRunner jobRunner;

    public JobsHttpStatus() {
        super("/progress");
    }

    @Override
    protected Object handleRequest(Request request, Response response) throws Exception {
        return jobRunner.createHtmlStatus();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy