SOLR-6485 added javadocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1631426 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2014-10-13 14:48:04 +00:00
parent 5e61a97033
commit 1fb3769a89
4 changed files with 9 additions and 6 deletions

View File

@ -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<String> subpaths;

View File

@ -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);
}

View File

@ -197,7 +197,7 @@ public abstract class RequestHandlerBase implements SolrRequestHandler, SolrInfo
@Override
public SolrRequestHandler getSubHandler(String path) {
public SolrRequestHandler getSubHandler(String subPath) {
return null;
}

View File

@ -139,7 +139,7 @@ public class InfoHandler extends RequestHandlerBase {
}
@Override
public SolrRequestHandler getSubHandler(String path) {
public SolrRequestHandler getSubHandler(String subPath) {
return this;
}
}