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

io.femo.http.helper.HttpSocketOptions 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.helper;

/**
 * Created by felix on 6/4/16.
 */
public class HttpSocketOptions {

    private boolean close;
    private HandledCallback handledCallback;


    public boolean isClose() {
        return close;
    }

    public void setClose(boolean close) {
        this.close = close;
    }

    public boolean hasHandledCallback() {
        return handledCallback != null;
    }

    public void callHandledCallback() {
        handledCallback.sent();
    }

    public void setHandledCallback(HandledCallback handledCallback) {
        this.handledCallback = handledCallback;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy