@@ -185,7 +185,7 @@ private static ServerDetails initServer(TikaServerConfig tikaServerConfig) throw
185185 PipesParsingHelper pipesParsingHelper = null ;
186186 if (needsPipesParsingHelper (tikaServerConfig )) {
187187 pipesParsingHelper = initPipesParsingHelper (tikaServerConfig );
188- LOG .info ("Pipes-based parsing enabled for /tika, /rmeta, /unpack, and /pipes endpoints" );
188+ LOG .info ("Pipes-based parsing enabled for /tika, /rmeta, /unpack, /meta, and /pipes endpoints" );
189189 }
190190
191191 TikaResource tikaResource = new TikaResource (tikaLoader , serverStatus , pipesParsingHelper ,
@@ -456,21 +456,22 @@ private static Collection<?> loadWriterServices() {
456456
457457 /**
458458 * Determines if the shared PipesParser (wrapped in PipesParsingHelper) is needed
459- * based on configured endpoints. It's needed when /tika, /rmeta, /unpack, or /pipes
460- * are enabled (either explicitly or by default) -- all four now share one parser.
461- * (Note: unlike the others, /pipes also requires allowPipes to actually start; if
462- * it's listed without allowPipes, loadCoreProviders will refuse to start regardless
463- * of whether this method already triggered building the shared parser.)
459+ * based on configured endpoints. It's needed when /tika, /rmeta, /unpack, /meta, or
460+ * /pipes are enabled (either explicitly or by default) -- all five now share one
461+ * parser. (Note: unlike the others, /pipes also requires allowPipes to actually
462+ * start; if it's listed without allowPipes, loadCoreProviders will refuse to start
463+ * regardless of whether this method already triggered building the shared parser.)
464464 */
465- private static boolean needsPipesParsingHelper (TikaServerConfig tikaServerConfig ) {
465+ static boolean needsPipesParsingHelper (TikaServerConfig tikaServerConfig ) {
466466 List <String > endpoints = tikaServerConfig .getEndpoints ();
467467 // If no endpoints specified, all default endpoints are loaded (including
468468 // tika, rmeta, and unpack; pipes too when allowPipes is set)
469469 if (endpoints == null || endpoints .isEmpty ()) {
470470 return true ;
471471 }
472472 return endpoints .contains ("tika" ) || endpoints .contains ("rmeta" )
473- || endpoints .contains ("unpack" ) || endpoints .contains ("pipes" );
473+ || endpoints .contains ("unpack" ) || endpoints .contains ("pipes" )
474+ || endpoints .contains ("meta" );
474475 }
475476
476477 /**
0 commit comments