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

io.femo.http.drivers.server.HttpThread Maven / Gradle / Ivy

Go to download

An easy to use HTTP API, that supports synchronous and asynchronous execution of HTTP request. On android only asynchronous driver is supported. This library has been backported to jdk 7 to retain compatibility with android!

The newest version!
package io.femo.http.drivers.server;

import org.xjs.dynamic.Pluggable;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * Created by Felix Resch on 29-Apr-16.
 */
public class HttpThread extends Thread implements Pluggable {

    private List children;

    public HttpThread(Runnable runnable) {
        super(runnable);
    }

    @Override
    public Collection __children() {
        if(this.children == null) {
            this.children = new ArrayList<>();
        }
        return this.children;
    }

    public HttpThread(Runnable target, List children) {
        super(target);
        this.children = children;
    }
}