Class ListCollectionsAPI
- java.lang.Object
-
- org.apache.solr.api.JerseyResource
-
- org.apache.solr.handler.admin.api.AdminAPIBase
-
- org.apache.solr.handler.admin.api.ListCollectionsAPI
-
@Path("/collections") public class ListCollectionsAPI extends AdminAPIBase
V2 API for listing collections.This API (GET /v2/collections) is equivalent to the v1 /admin/collections?action=LIST command
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListCollectionsAPI.ListCollectionsResponse
-
Field Summary
-
Fields inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
coreContainer, solrQueryRequest, solrQueryResponse
-
Fields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext
-
-
Constructor Summary
Constructors Constructor Description ListCollectionsAPI(CoreContainer coreContainer, SolrQueryRequest req, SolrQueryResponse rsp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListCollectionsAPI.ListCollectionsResponse
listCollections()
-
Methods inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
disableResponseCaching, fetchAndValidateZooKeeperAwareCoreContainer, insertIfNotNull, recordCollectionForLogAndTracing, resolveAndValidateAliasIfEnabled, resolveCollectionName, submitRemoteMessageAndHandleResponse, validateZooKeeperAwareCoreContainer
-
Methods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
-
-
-
Constructor Detail
-
ListCollectionsAPI
@Inject public ListCollectionsAPI(CoreContainer coreContainer, SolrQueryRequest req, SolrQueryResponse rsp)
-
-
Method Detail
-
listCollections
@GET @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public ListCollectionsAPI.ListCollectionsResponse listCollections()
-
-