## Package javax.servlet.annotation

The javax.servlet.annotation package contains a number of annotations that allow users to use annotations to declare servlets, filters, listeners and specify the metadata for the declared component.

See:
Description

Enum Summary
ServletSecurity.EmptyRoleSemantic: Defines the access semantic to be applied to an empty rolesAllowed array.
ServletSecurity.TransportGuarantee: Defines the data protection requirements that must be satisfied by the transport

Annotation Types Summary
HandlesTypes: This annotation is used to declare the class types that a `ServletContainerInitializer` can handle.
HttpConstraint: This annotation is used within the `ServletSecurity` annotation to represent the security constraints to be applied to all HTTP protocol methods for which a corresponding `HttpMethodConstraint` element does NOT occur within the `ServletSecurity` annotation.
HttpMethodConstraint: This annotation is used within the `ServletSecurity` annotation to represent security constraints on specific HTTP protocol messages.
MultipartConfig: Annotation that may be specified on a `Servlet` class, indicating that instances of the `Servlet` expect requests that conform to the `multipart/form-data` MIME type.
ServletSecurity: This annotation is used on a Servlet implementation class to specify security constraints to be enforced by a Servlet container on HTTP protocol messages.
WebFilter: Annotation used to declare a servlet filter.
WebInitParam: This annotation is used on a Servlet or Filter implementation class to specify an initialization parameter.
WebListener: This annotation is used to declare a WebListener.
WebServlet: Annotation used to declare a servlet.

## Package javax.servlet.annotation Description

The javax.servlet.annotation package contains a number of annotations that allow users to use annotations to declare servlets, filters, listeners and specify the metadata for the declared component.

Since:
  Servlet 3.0

Copyright © 2012 GlassFish Community. All Rights Reserved.