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

serguei.http.HttpServerOnConnectProcess Maven / Gradle / Ivy

Go to download

Simple HTTP client and HTTP server. Easy to use and small. No dependencies.

There is a newer version: 1.0.50
Show newest version
package serguei.http;

import java.net.Socket;

public interface HttpServerOnConnectProcess {

    /**
     * Process socket immediately after connection is made but after TLS handshake took place (if applicable)
     * 
     * @param socket
     *            - connection's socket
     * @param clientHello
     *            - information about protocol (if TLS), null if this is a plain connection
     * @return true if we would like to continue with this connection and false if we want to close it, there is no need
     *         to close the socket if returning false
     */
    public boolean process(Socket socket, ClientHello clientHello);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy