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;
}
Aggregations