private static boolean shouldDecode ( final HttpServerExchange exchange ) { return ! exchange . getConnection ( ) . getUndertowOptions ( ) . get ( UndertowOptions . DECODE_URL , true ) && exchange . putAttachment ( ALREADY_DECODED , Boolean . TRUE ) == null ; }
attachment so that subsequent invocations will always return false .