diff --git a/solr/core/src/java/org/apache/solr/handler/DumpRequestHandler.java b/solr/core/src/java/org/apache/solr/handler/DumpRequestHandler.java index 7d68785c8ca..43669e29a32 100644 --- a/solr/core/src/java/org/apache/solr/handler/DumpRequestHandler.java +++ b/solr/core/src/java/org/apache/solr/handler/DumpRequestHandler.java @@ -88,8 +88,8 @@ public class DumpRequestHandler extends RequestHandlerBase } @Override - public SolrRequestHandler getSubHandler(String path) { - if(subpaths !=null && subpaths.contains(path)) return this; + public SolrRequestHandler getSubHandler(String subPath) { + if(subpaths !=null && subpaths.contains(subPath)) return this; return null; } private List subpaths; diff --git a/solr/core/src/java/org/apache/solr/handler/NestedRequestHandler.java b/solr/core/src/java/org/apache/solr/handler/NestedRequestHandler.java index e4faba2c4c3..66c54f37eab 100644 --- a/solr/core/src/java/org/apache/solr/handler/NestedRequestHandler.java +++ b/solr/core/src/java/org/apache/solr/handler/NestedRequestHandler.java @@ -23,6 +23,9 @@ import org.apache.solr.request.SolrRequestHandler; /**An interface for RequestHandlers need to handle all paths under its registered path */ public interface NestedRequestHandler { - - public SolrRequestHandler getSubHandler(String path); + /** Return a Requestandler to handle a subpath from the path this handler is registered. + * @param subPath + * @return a SolrRequestHandler instance + */ + public SolrRequestHandler getSubHandler(String subPath); } diff --git a/solr/core/src/java/org/apache/solr/handler/RequestHandlerBase.java b/solr/core/src/java/org/apache/solr/handler/RequestHandlerBase.java index 9d7a0dae330..55daf0ac2ee 100644 --- a/solr/core/src/java/org/apache/solr/handler/RequestHandlerBase.java +++ b/solr/core/src/java/org/apache/solr/handler/RequestHandlerBase.java @@ -197,7 +197,7 @@ public abstract class RequestHandlerBase implements SolrRequestHandler, SolrInfo @Override - public SolrRequestHandler getSubHandler(String path) { + public SolrRequestHandler getSubHandler(String subPath) { return null; } diff --git a/solr/core/src/java/org/apache/solr/handler/admin/InfoHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/InfoHandler.java index 15112599a57..130cff93f2c 100644 --- a/solr/core/src/java/org/apache/solr/handler/admin/InfoHandler.java +++ b/solr/core/src/java/org/apache/solr/handler/admin/InfoHandler.java @@ -139,7 +139,7 @@ public class InfoHandler extends RequestHandlerBase { } @Override - public SolrRequestHandler getSubHandler(String path) { + public SolrRequestHandler getSubHandler(String subPath) { return this; } }