Get response filter by name

By default, the only one filter "download" is available.
10986
@SuppressWarnings("unchecked")
  public <T extends ResponseFilter> T responseFilter(String name) {
    return (T) responseFilters.get(name);
  }
1165973
public static ns_conf_download_policy[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_conf_download_policy obj = new ns_conf_download_policy();
		options option = new options();
		option.set_filter(filter);
		ns_conf_download_policy[] response = (ns_conf_download_policy[]) obj.getfiltered(service, option);
		return response;
	}
771602
function(name) {
    var nameList = name.split('.');

    return nameList
      .map(function(item, i, list) {
        return list.slice(0, i+1).join('.');
      })
      .filter(function(item) {
        return item !== null;
      });
  }
395019
function getFilter(name) {
    if (name in this._filters) {
      return this._filters[name];
    }
    else if (this._parent) {
      return this._parent.getFilter(name);
    }

    throw new Error("Missing filter " + name);
  }
639662
def selective_download(name, oldest, newest):
    """"""
    if six.PY3:
        name = name.encode("utf-8")
    feed = resolve_name(name)
    if six.PY3:
        feed = feed.decode()
    d = feedparser.parse(feed)
    logger.debug(d)
    try:
        d.entries[int(oldest)]
    except IndexError:
        print("Error feed does not contain this many items.")
        print("Hitman thinks there are %d items in this feed." % len(d.entries))
        return
    for url in [q.enclosures[0]['href'] for q in d.entries[int(newest):int(oldest)]]:
        # iterate over urls in feed from newest to oldest feed items.
        url = str(url)
        with Database("downloads") as db:
            if url.split('/')[-1] not in db:
                # download(url, name, feed)
                with Database("settings") as settings:
                    if 'dl' in settings:
                        dl_dir = settings['dl']
                    else:
                        dl_dir = os.path.join(os.path.expanduser("~"), "Downloads")
                requests_get(url, dl_dir)
17268
public static filteraction get(nitro_service service, String name) throws Exception{
		filteraction obj = new filteraction();
		obj.set_name(name);
		filteraction response = (filteraction) obj.get_resource(service);
		return response;
	}
178802
public static backup_policy[] get_filtered(nitro_service service, String filter) throws Exception
	{
		backup_policy obj = new backup_policy();
		options option = new options();
		option.set_filter(filter);
		backup_policy[] response = (backup_policy[]) obj.getfiltered(service, option);
		return response;
	}
250054
public static service[] get_filtered(nitro_service service, String filter) throws Exception{
		service obj = new service();
		options option = new options();
		option.set_filter(filter);
		service[] response = (service[]) obj.getfiltered(service, option);
		return response;
	}
188698
def _get_resource_raw(
        self, cls, id, extra=None, headers=None, stream=False, **filters
    ):
        """"""
        headers = headers or {}
        headers.update(self.session.headers)

        postfix = "/{}".format(extra) if extra else ""
        if cls.api_root != "a":
            url = "{}/{}/{}{}".format(self.api_server, cls.collection_name, id, postfix)
        else:
            url = "{}/a/{}/{}/{}{}".format(
                self.api_server, self.app_id, cls.collection_name, id, postfix
            )

        converted_filters = convert_datetimes_to_timestamps(
            filters, cls.datetime_filter_attrs
        )
        url = str(URLObject(url).add_query_params(converted_filters.items()))
        response = self._get_http_session(cls.api_root).get(
            url, headers=headers, stream=stream
        )
        return _validate(response)
803234
public static iptunnel[] get_filtered(nitro_service service, String filter) throws Exception{
		iptunnel obj = new iptunnel();
		options option = new options();
		option.set_filter(filter);
		iptunnel[] response = (iptunnel[]) obj.getfiltered(service, option);
		return response;
	}
252930
public static filterpolicy_binding get(nitro_service service, String name) throws Exception{
		filterpolicy_binding obj = new filterpolicy_binding();
		obj.set_name(name);
		filterpolicy_binding response = (filterpolicy_binding) obj.get_resource(service);
		return response;
	}
837908
def fetch_api_by_name(api_name):
    
    api_records = console.get_rest_apis()['items']
    matches = filter(lambda x: x['name'] == api_name, api_records)
    if not matches:
        return None
    return matches[0]
169133
public static physical_disk[] get_filtered(nitro_service service, String filter) throws Exception
	{
		physical_disk obj = new physical_disk();
		options option = new options();
		option.set_filter(filter);
		physical_disk[] response = (physical_disk[]) obj.getfiltered(service, option);
		return response;
	}
702875
def get(self, name: str, default: Any = None) -> Any:
        """"""
        return super().get(name, [default])[0]
329798
def filter(self, func):
        """"""
        return self.__class__(list(filter(func,self.res)),
                              name="filtered %s"%self.listname)
1351299
public static server[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
		server obj = new server();
		options option = new options();
		option.set_filter(filter);
		server[] response = (server[]) obj.getfiltered(service, option);
		return response;
	}
683054
def create_filter(self):
        """"""
        return Filter(
            self.networkapi_url,
            self.user,
            self.password,
            self.user_ldap)