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
|
@Override
|
||||||
public SolrRequestHandler getSubHandler(String path) {
|
public SolrRequestHandler getSubHandler(String subPath) {
|
||||||
if(subpaths !=null && subpaths.contains(path)) return this;
|
if(subpaths !=null && subpaths.contains(subPath)) return this;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
private List<String> subpaths;
|
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
|
/**An interface for RequestHandlers need to handle all paths under its registered path
|
||||||
*/
|
*/
|
||||||
public interface NestedRequestHandler {
|
public interface NestedRequestHandler {
|
||||||
|
/** Return a Requestandler to handle a subpath from the path this handler is registered.
|
||||||
public SolrRequestHandler getSubHandler(String path);
|
* @param subPath
|
||||||
|
* @return a SolrRequestHandler instance
|
||||||
|
*/
|
||||||
|
public SolrRequestHandler getSubHandler(String subPath);
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,7 +197,7 @@ public abstract class RequestHandlerBase implements SolrRequestHandler, SolrInfo
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SolrRequestHandler getSubHandler(String path) {
|
public SolrRequestHandler getSubHandler(String subPath) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,7 @@ public class InfoHandler extends RequestHandlerBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SolrRequestHandler getSubHandler(String path) {
|
public SolrRequestHandler getSubHandler(String subPath) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue