public static boolean startDefaultHandlers ( HttpServerExchange httpServerExchange ) { // check if defaultHandlers is empty if ( defaultHandlers != null && defaultHandlers . size ( ) > 0 ) { httpServerExchange . putAttachment ( CHAIN_ID , "defaultHandlers" ) ; httpServerExchange . putAttachment ( CHAIN_SEQ , 0 ) ; return true ; } return false ; }
If there is no matching path the OrchestrationHandler is going to try to start the defaultHandlers . If there are default handlers defined store the chain id within the exchange . Otherwise return false .