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.webapp.DiscoveredAnnotation;
22 import org.eclipse.jetty.webapp.WebAppContext;
23
24
25
26
27
28
29 public class WebFilterAnnotationHandler extends AbstractDiscoverableAnnotationHandler
30 {
31 public WebFilterAnnotationHandler (WebAppContext context)
32 {
33 super(context);
34 }
35
36 public void handleClass(String className, int version, int access, String signature, String superName, String[] interfaces, String annotation,
37 List<Value> values)
38 {
39 WebFilterAnnotation wfAnnotation = new WebFilterAnnotation(_context, className);
40 addAnnotation(wfAnnotation);
41 }
42
43 public void handleField(String className, String fieldName, int access, String fieldType, String signature, Object value, String annotation,
44 List<Value> values)
45 {
46 Log.warn ("@WebFilter not applicable for fields: "+className+"."+fieldName);
47 }
48
49 public void handleMethod(String className, String methodName, int access, String params, String signature, String[] exceptions, String annotation,
50 List<Value> values)
51 {
52 Log.warn ("@WebFilter not applicable for methods: "+className+"."+methodName+" "+signature);
53 }
54
55 }