io.femo.http.helper.HttpSocketOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-jdk7 Show documentation
Show all versions of http-jdk7 Show documentation
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;
}
}