Search in sources :

Example 1 with SelectionKeyHandler

use of org.glassfish.grizzly.config.dom.SelectionKeyHandler in project Payara by payara.

the class GenericGrizzlyListener method getSelectionKeyHandlerByName.

private static SelectionKeyHandler getSelectionKeyHandlerByName(final String name, final Transport transportConfig) {
    Transports transports = transportConfig.getParent();
    List<SelectionKeyHandler> handlers = transports.getSelectionKeyHandler();
    if (!handlers.isEmpty()) {
        for (SelectionKeyHandler handler : handlers) {
            if (handler.getName().equals(name)) {
                return handler;
            }
        }
    }
    return null;
}
Also used : Transports(org.glassfish.grizzly.config.dom.Transports) SelectionKeyHandler(org.glassfish.grizzly.config.dom.SelectionKeyHandler)

Aggregations

SelectionKeyHandler (org.glassfish.grizzly.config.dom.SelectionKeyHandler)1 Transports (org.glassfish.grizzly.config.dom.Transports)1