org.eclipse.jetty.annotations

## Class WebServletAnnotationHandler

- java.lang.Object
- - org.eclipse.jetty.annotations.AbstractDiscoverableAnnotationHandler
  - - org.eclipse.jetty.annotations.WebServletAnnotationHandler

- All Implemented Interfaces:
    AnnotationParser.DiscoverableAnnotationHandler, AnnotationParser.Handler

      public class WebServletAnnotationHandler
      extends AbstractDiscoverableAnnotationHandler

  WebServletAnnotationHandler Process a WebServlet annotation on a class.

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.jetty.annotations.AbstractDiscoverableAnnotationHandler

      `_annotations, _context, _resource`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `WebServletAnnotationHandler(WebAppContext context)`
    `WebServletAnnotationHandler(WebAppContext context, List<DiscoveredAnnotation> list)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getAnnotationName()` Get the name of the annotation processed by this handler.
    `void` | `handleClass(String className, int version, int access, String signature, String superName, String[] interfaces, String annotationName, List<AnnotationParser.Value> values)` Handle discovering a WebServlet annotation.
    `void` | `handleField(String className, String fieldName, int access, String fieldType, String signature, Object value, String annotation, List<AnnotationParser.Value> values)` Process an annotation that was discovered on a field
    `void` | `handleMethod(String className, String methodName, int access, String params, String signature, String[] exceptions, String annotation, List<AnnotationParser.Value> values)` Process an annotation that was discovered on a method

    - ### Methods inherited from class org.eclipse.jetty.annotations.AbstractDiscoverableAnnotationHandler

      `addAnnotation, getAnnotationList, getResource, resetList, setResource`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### WebServletAnnotationHandler

          public WebServletAnnotationHandler(WebAppContext context)

    - #### WebServletAnnotationHandler

          public WebServletAnnotationHandler(WebAppContext context,
                                     List<DiscoveredAnnotation> list)

  - ### Method Detail

    - #### handleClass

          public void handleClass(String className,
                         int version,
                         int access,
                         String signature,
                         String superName,
                         String[] interfaces,
                         String annotationName,
                         List<AnnotationParser.Value> values)

      Handle discovering a WebServlet annotation.
      See Also:
        `AnnotationParser.DiscoverableAnnotationHandler.handleClass(java.lang.String, int, int, java.lang.String, java.lang.String, java.lang.String[], java.lang.String, java.util.List)`

    - #### handleField

          public void handleField(String className,
                         String fieldName,
                         int access,
                         String fieldType,
                         String signature,
                         Object value,
                         String annotation,
                         List<AnnotationParser.Value> values)

      Description copied from interface: `AnnotationParser.DiscoverableAnnotationHandler`
      Process an annotation that was discovered on a field

    - #### handleMethod

          public void handleMethod(String className,
                          String methodName,
                          int access,
                          String params,
                          String signature,
                          String[] exceptions,
                          String annotation,
                          List<AnnotationParser.Value> values)

      Description copied from interface: `AnnotationParser.DiscoverableAnnotationHandler`
      Process an annotation that was discovered on a method

    - #### getAnnotationName

          public String getAnnotationName()

      Description copied from interface: `AnnotationParser.DiscoverableAnnotationHandler`
      Get the name of the annotation processed by this handler. Can be null
      Returns:

Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.