protected String getEncoding(Annotation[] annotations) { for (Annotation annotation : annotations) { if (annotation.annotationType().isAnnotationPresent(ContentEncoding.class)) { return annotation.annotationType().getAnnotation(ContentEncoding.class).value(); } } return null; }
protected Set<String> getEncodings(Annotation[] annotations) { Set<String> encodings = new HashSet<String>(); for (Annotation annotation : annotations) { if (annotation.annotationType().isAnnotationPresent(ContentEncoding.class)) { encodings.add(annotation.annotationType().getAnnotation(ContentEncoding.class).value().toLowerCase()); } } return encodings; } }
protected String getEncoding(Annotation[] annotations) { for (Annotation annotation : annotations) { if (annotation.annotationType().isAnnotationPresent(ContentEncoding.class)) { return annotation.annotationType().getAnnotation(ContentEncoding.class).value(); } } return null; }
protected String getEncoding(Annotation[] annotations) { for (Annotation annotation : annotations) { if (annotation.annotationType().isAnnotationPresent(ContentEncoding.class)) { return annotation.annotationType().getAnnotation(ContentEncoding.class).value(); } } return null; }
protected Set<String> getEncodings(Annotation[] annotations) { Set<String> encodings = new HashSet<String>(); for (Annotation annotation : annotations) { if (annotation.annotationType().isAnnotationPresent(ContentEncoding.class)) { encodings.add(annotation.annotationType().getAnnotation(ContentEncoding.class).value().toLowerCase()); } } return encodings; } }
protected Set<String> getEncodings(Annotation[] annotations) { Set<String> encodings = new HashSet<String>(); for (Annotation annotation : annotations) { if (annotation.annotationType().isAnnotationPresent(ContentEncoding.class)) { encodings.add(annotation.annotationType().getAnnotation(ContentEncoding.class).value().toLowerCase()); } } return encodings; } }