Which of the following are attributes of the annotation javax.servlet.annotation.WebFiler?
Name
servletNames
urlPatterns
dispatcherTypes
supportAsync
A.
(iii) only
B.
(iii) and (iv)
C.
(ii), (iii) and (iv)
D.
(iii), (iv) and (v)
E.
(ii), (iii), (iv) and (v)
Explanation:
* (iii) urlPatterns
The URL patterns to which the filter applies
* (iv) dispatcherTypes
The dispatcher types to which the filter applies
* (not V): asyncSupported
Declares whether the filter supports asynchronous operation mode.
Note:
* javax.servlet.annotation
Annotation Type WebFilter
Annotation used to declare a servlet filter.
This annotation is processed by the container at deployment time, and the corresponding filter
applied to the specified URL patterns, servlets, and dispatcher types.—–
C
C
C
http://docs.oracle.com/javaee/6/api/javax/servlet/annotation/WebFilter.html
C, The answer B is about the @WebServlet
C
C is correct
E
https://docs.oracle.com/javaee/6/api/javax/servlet/annotation/WebFilter.html
C for sure
Is not B. The correct answer is C without doubt
C is correct
The correct answer is C without doubt