IntelliJ IDEA 2016.3 Help

New Filter Dialog

File | New | Filter


Specify the settings for the new filter.

Item Description
Name The "root part" of the filter name.

This name (along with its prefix and suffix) will be used either in the <filter-name> element in web.xml or in the filter class @WebFilter annotation.

You can specify the filter name prefix and suffix (the <filter-name> tag Prefix and Suffix fields on the Java EE Names tab of the Editor | Code Style | Java page in the Settings dialog). In that case, the prefix and the suffix are added before and after the specified name automatically.

Package The name of the package in which the new filter class should be created.

Click /help/img/idea/2016.3/browseButton.png. Then select an existing package or click /help/img/idea/2016.3/icon_newFolder.png to create a new package.

Class The fully qualified name of the filter class.

The default class name is generated using the package name, the class name prefix, the filter name, and the class name suffix.

The class name prefix and suffix are set in the Settings dialog. (The Filter Class Prefix and Suffix fields on the Java EE Names tab of the Editor | Code Style | Java page.)

If you want to specify an existing class, click /help/img/idea/2016.3/browseButton.png and select the class in the dialog that opens.

Create Java EE 6 annotated class If the check box is not selected, the filter name - class mapping is added to web.xml.

If the check box is selected, the new filter class will be @WebFilter-annotated and no changes will be made to web.xml.

If there is no web.xml in your project, the check box is selected by default, and you cannot deselect it.

See Also

```

Procedures:

Reference:

Last modified: 21 March 2017