/** * Enables or disables a connection listener. Does nothing if the particular listener is already in the requested * state. * * The #startInSslMode parameter is used to distinguish between listeners that expect to receive SSL encrypted data * immediately, as opposed to connections that initially accept plain text data (the latter are typically subject to * StartTLS for in-band encryption configuration). When for a particular connection type only one of these options * is implemented, the parameter value is ignored. * * @param type The connection type for which a listener is to be configured. * @param startInSslMode true when the listener to be configured is in legacy SSL mode, otherwise false. * @param enabled true if the listener is to be enabled, otherwise false. */ public void enable( ConnectionType type, boolean startInSslMode, boolean enabled ) { getListener( type, startInSslMode ).enable( enabled ); }
/** * Enables or disables a connection listener. Does nothing if the particular listener is already in the requested * state. * * The #startInSslMode parameter is used to distinguish between listeners that expect to receive SSL encrypted data * immediately, as opposed to connections that initially accept plain text data (the latter are typically subject to * StartTLS for in-band encryption configuration). When for a particular connection type only one of these options * is implemented, the parameter value is ignored. * * @param type The connection type for which a listener is to be configured. * @param startInSslMode true when the listener to be configured is in legacy SSL mode, otherwise false. * @param enabled true if the listener is to be enabled, otherwise false. */ public void enable( ConnectionType type, boolean startInSslMode, boolean enabled ) { getListener( type, startInSslMode ).enable( enabled ); }