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

io.femo.http.events.HttpHandledEvent 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.events;

import io.femo.http.HttpRequest;
import io.femo.http.HttpResponse;

/**
 * Created by felix on 2/11/16.
 */
public class HttpHandledEvent extends HttpEvent {

    private HttpRequest request;
    private HttpResponse response;
    private boolean callbackExecuted;

    public HttpHandledEvent(HttpRequest request, HttpResponse response, boolean callbackExecuted) {
        super(HttpEventType.HANDLED);
        this.request = request;
        this.response = response;
        this.callbackExecuted = callbackExecuted;
    }

    public HttpRequest request() {
        return request;
    }

    public HttpResponse response() {
        return response;
    }

    public boolean callbackExecuted() {
        return callbackExecuted;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy