Home » Oracle » 1z0-899 » Which of the following are attributes of the annotation javax.servlet.annotation.WebFiler?
Which of the following are attributes of the annotation javax.servlet.annotation.WebFiler?
(i) Name
(ii) servletNames
(iii) urlPatterns
(iv) dispatcherTypes
(v) supportAsync
A. (iii) only
B. (iii) and (iv)
C. (ii), (iii) and (iv)
D. (iii), (iv) and (v)
E. (ii), (iii), (iv) and (v)
Correct Answer: B
Explanation/Reference:
* (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.
Download Printable PDF. VALID exam to help you PASS.
|
|