# RestFilter, RestFilterChain, RestController changes after 5.1.2

**URL:** <https://discuss.elastic.co/t/restfilter-restfilterchain-restcontroller-changes-after-5-1-2/129706>\
**Category:** Elasticsearch\
**Created:** [April 26, 2018, 3:07pm UTC](https://discuss.elastic.co/t/restfilter-restfilterchain-restcontroller-changes-after-5-1-2/129706 "2018-04-26T15:07:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arul\_since1975](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@arul\_since1975](https://discuss.elastic.co/u/arul_since1975)\
**Post date:** [April 26, 2018, 3:07pm UTC](https://discuss.elastic.co/t/restfilter-restfilterchain-restcontroller-changes-after-5-1-2/129706/1 "2018-04-26T15:07:01Z")

</div>

Hi,

I am in the process upgrading my plugin to ElasticSearch 5.6.8 from ElasticSearch 5.1.2.  
From ES 5.2 onwards, The classes RestFilter and RestFilterChain has been removed from ElasticSearch API.

My Current code goes like this  
public abstract class PluginSecurityFilter extends RestFilter  
Where I @override process method to implement my own.

Where in I use the  
RestFilterChain.continueProcessing(RestRequest, RestChannel, NodeClient); to send my RestRequest

However the Classes themselves are removed. Please let me know what is the workaround for the same?

Also in RestController.registerFilter(.. method has been removed in ES 5.6.8

Thanks in Advance.  
--Arul

---

<div class="post-metadata">

**Author:** ![arul\_since1975](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@arul\_since1975](https://discuss.elastic.co/u/arul_since1975)\
**Post date:** [April 26, 2018, 7:56pm UTC](https://discuss.elastic.co/t/restfilter-restfilterchain-restcontroller-changes-after-5-1-2/129706/2 "2018-04-26T19:56:10Z")

</div>

To add further, My plugin intercepts every RestRequest to ElasticSearch and applies some security and authentication guidelines on it, and it is satisfied, I continueProcessing the RequestRequest.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 24, 2018, 8:02pm UTC](https://discuss.elastic.co/t/restfilter-restfilterchain-restcontroller-changes-after-5-1-2/129706/3 "2018-05-24T20:02:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
