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

com.global.api.gateways.events.SslHandshakeEvent Maven / Gradle / Ivy

The newest version!
package com.global.api.gateways.events;

public class SslHandshakeEvent extends GatewayEvent {
    private Exception sslException;

    public String getEventMessage() {
        String rvalue = super.getEventMessage();

        if(sslException != null) {
            rvalue = rvalue.concat(String.format("SSL Handshake Failed: %s", sslException.getMessage()));
        }
        else {
            rvalue = rvalue.concat("SSL Handshake Success");
        }

        return rvalue;
    }

    public SslHandshakeEvent(String connectorName, Exception exc) {
        super(connectorName, GatewayEventType.SslHandshake);
        sslException = exc;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy