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