1
2
3
4
5
6
7
8
9
10
11
12
13
14 package org.eclipse.jetty.annotations;
15
16 import java.util.List;
17
18 import org.eclipse.jetty.annotations.AnnotationParser.DiscoverableAnnotationHandler;
19 import org.eclipse.jetty.annotations.AnnotationParser.Value;
20 import org.eclipse.jetty.util.log.Log;
21 import org.eclipse.jetty.util.log.Logger;
22 import org.eclipse.jetty.webapp.DiscoveredAnnotation;
23 import org.eclipse.jetty.webapp.WebAppContext;
24
25
26
27
28
29
30 public class WebFilterAnnotationHandler extends AbstractDiscoverableAnnotationHandler
31 {
32 private static final Logger LOG = Log.getLogger(WebFilterAnnotationHandler.class);
33
34 public WebFilterAnnotationHandler (WebAppContext context)
35 {
36 super(context);
37 }
38
39 public void handleClass(String className, int version, int access, String signature, String superName, String[] interfaces, String annotation,
40 List<Value> values)
41 {
42 WebFilterAnnotation wfAnnotation = new WebFilterAnnotation(_context, className);
43 addAnnotation(wfAnnotation);
44 }
45
46 public void handleField(String className, String fieldName, int access, String fieldType, String signature, Object value, String annotation,
47 List<Value> values)
48 {
49 LOG.warn ("@WebFilter not applicable for fields: "+className+"."+fieldName);
50 }
51
52 public void handleMethod(String className, String methodName, int access, String params, String signature, String[] exceptions, String annotation,
53 List<Value> values)
54 {
55 LOG.warn ("@WebFilter not applicable for methods: "+className+"."+methodName+" "+signature);
56 }
57
58 }