org.logdoc.fairhttp.helpers.SocketConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fair-http-client Show documentation
Show all versions of fair-http-client Show documentation
LogDoc.org project http client
package org.logdoc.fairhttp.helpers;
import org.logdoc.fairhttp.structs.SocketMessage;
/**
* @author Denis Danilin | [email protected]
* 06.01.2023 15:47
* fairhttp ☭ sweat and blood
*/
public interface SocketConsumer {
void onMessage(SocketMessage message);
default void onClose(int code, String reason, boolean remote) {}
default boolean autoJsonParse() {
return false;
}
default boolean autoXmlParse() {
return false;
}
}