mirror of https://github.com/apache/lucene.git
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:
parent
5e61a97033
commit
1fb3769a89
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ public abstract class RequestHandlerBase implements SolrRequestHandler, SolrInfo
|
|||
|
||||
|
||||
@Override
|
||||
public SolrRequestHandler getSubHandler(String path) {
|
||||
public SolrRequestHandler getSubHandler(String subPath) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ public class InfoHandler extends RequestHandlerBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
public SolrRequestHandler getSubHandler(String path) {
|
||||
public SolrRequestHandler getSubHandler(String subPath) {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue