Exemplo n.º 1
0
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <NodesShutdownRequestParameters> pathInfo)
 {
     NodesShutdownPathInfo.Update(pathInfo);
 }
Exemplo n.º 2
0
 public static void Update(ElasticsearchPathInfo <SnapshotStatusRequestParameters> pathInfo, ISnapshotStatusRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.GET;
 }
Exemplo n.º 3
0
 public static void Update(IConnectionSettingsValues settings, ElasticsearchPathInfo <SearchRequestParameters> pathInfo, ISearchRequest request)
 {
     pathInfo.HttpMethod = request.RequestParameters.ContainsKey("source") ? PathInfoHttpMethod.GET : PathInfoHttpMethod.POST;
 }
Exemplo n.º 4
0
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <MultiTermVectorsRequestParameters> pathInfo)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.POST;
 }
Exemplo n.º 5
0
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <GetIndexSettingsRequestParameters> pathInfo)
 {
     GetIndexSettingsPathInfo.Update(pathInfo, this);
 }
Exemplo n.º 6
0
 public static void Update(IConnectionSettingsValues settings, ElasticsearchPathInfo <UpdateSettingsRequestParameters> pathInfo)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.PUT;
 }
Exemplo n.º 7
0
 public static void Update(ElasticsearchPathInfo <MultiTermVectorsRequestParameters> pathInfo, IMultiTermVectorsRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.POST;
 }
Exemplo n.º 8
0
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <CatFielddataRequestParameters> pathInfo)
 {
     CatRequestPathInfo.Update(pathInfo);
 }
Exemplo n.º 9
0
 public static void Update(ElasticsearchPathInfo <DeleteScriptRequestParameters> pathInfo, IDeleteScriptRequest request)
 {
     pathInfo.Id         = request.Id;
     pathInfo.Lang       = request.Lang;
     pathInfo.HttpMethod = PathInfoHttpMethod.DELETE;
 }
Exemplo n.º 10
0
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <TemplateExistsRequestParameters> pathInfo)
 {
     TemplateExistsPathInfo.Update(pathInfo, this);
 }
Exemplo n.º 11
0
 public static void Update(ElasticsearchPathInfo <PutTemplateRequestParameters> pathInfo, IPutTemplateRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.PUT;
 }
Exemplo n.º 12
0
 public static void Update(ElasticsearchPathInfo <TemplateExistsRequestParameters> pathInfo, ITemplateExistsRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.HEAD;
 }
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <PercolateCountRequestParameters> pathInfo)
 {
     PercolateCountPathInfo.Update(pathInfo, this);
 }
 public static void Update <T>(ElasticsearchPathInfo <PercolateCountRequestParameters> pathInfo, IPercolateCountRequest <T> request)
     where T : class
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.POST;
 }
Exemplo n.º 15
0
 protected abstract void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <TParameters> pathInfo);
Exemplo n.º 16
0
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <DeleteScriptRequestParameters> pathInfo)
 {
     DeleteScriptPathInfo.Update(pathInfo, this);
 }
Exemplo n.º 17
0
 protected override void SetRouteParameters(IConnectionSettingsValues settings, ElasticsearchPathInfo <TParameters> pathInfo)
 {
     RepositoryPathRouteParameters.SetRouteParameters(this, settings, pathInfo);
 }
Exemplo n.º 18
0
 protected override void SetRouteParameters(IConnectionSettingsValues settings, ElasticsearchPathInfo <TParameters> pathInfo)
 {
     IndicesTypePathRouteParameters.SetRouteParameters <TParameters>(this, settings, pathInfo);
 }
Exemplo n.º 19
0
 public static void Update(ElasticsearchPathInfo <RefreshRequestParameters> pathInfo, IRefreshRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.POST;
 }
 public static void Update(ElasticsearchPathInfo <ClusterStatsRequestParameters> pathInfo)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.GET;
 }
Exemplo n.º 21
0
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <MultiTermVectorsRequestParameters> pathInfo)
 {
     MultiTermVectorsPathInfo.Update(pathInfo, this);
 }
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <ClusterStatsRequestParameters> pathInfo)
 {
     ClusterStatsPathInfo.Update(pathInfo);
 }
Exemplo n.º 23
0
 public static void Update(ElasticsearchPathInfo <GetIndexSettingsRequestParameters> pathInfo, IGetIndexSettingsRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.GET;
 }
Exemplo n.º 24
0
 public WatcherPathInfo(ElasticsearchPathInfo <TParameters> elasticsearchPathInfo)
 {
     this.HttpMethod = elasticsearchPathInfo.HttpMethod;
     this.Id         = elasticsearchPathInfo.Id;
     this.Name       = elasticsearchPathInfo.Name;
 }
Exemplo n.º 25
0
 protected override void SetRouteParameters(IConnectionSettingsValues settings, ElasticsearchPathInfo <TParameters> pathInfo)
 {
     base.SetRouteParameters(settings, pathInfo);
     pathInfo.Index.ThrowIfNullOrEmpty("index");
     pathInfo.Type.ThrowIfNullOrEmpty("type");
     pathInfo.Id.ThrowIfNullOrEmpty("id");
 }
Exemplo n.º 26
0
 protected virtual void SetRouteParameters(
     IConnectionSettingsValues settings,
     ElasticsearchPathInfo <TParameters> pathInfo)
 {
 }
Exemplo n.º 27
0
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <SnapshotStatusRequestParameters> pathInfo)
 {
     SnapshotStatusPathInfo.Update(pathInfo, this);
 }
Exemplo n.º 28
0
 protected virtual void ValidatePathInfo(ElasticsearchPathInfo <TParameters> pathInfo)
 {
 }
Exemplo n.º 29
0
 protected override void UpdatePathInfo(IConnectionSettingsValues settings, ElasticsearchPathInfo <SearchRequestParameters> pathInfo)
 {
     SearchPathInfo.Update(settings, pathInfo, this);
 }
Exemplo n.º 30
0
 public static void Update(ElasticsearchPathInfo <NodesShutdownRequestParameters> pathInfo)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.POST;
 }