| 1 |
|
package org.trails.descriptor.annotation; |
| 2 |
|
|
| 3 |
|
import java.lang.annotation.ElementType; |
| 4 |
|
import java.lang.annotation.Retention; |
| 5 |
|
import java.lang.annotation.RetentionPolicy; |
| 6 |
|
import java.lang.annotation.Target; |
| 7 |
|
|
| 8 |
|
import org.trails.descriptor.BlobDescriptorExtension; |
| 9 |
|
|
| 10 |
|
@Retention(RetentionPolicy.RUNTIME) |
| 11 |
|
@Target({ElementType.FIELD, ElementType.METHOD}) |
| 12 |
|
@DescriptorAnnotation(BlobDescriptorAnnotationHandler.class) |
| 13 |
|
public @interface BlobDescriptor |
| 14 |
|
{ |
| 15 |
|
|
| 16 |
|
public static final String DEFAULT_fileName = ""; |
| 17 |
|
public static final String DEFAULT_contentType = ""; |
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
public String fileName() default ""; |
| 22 |
|
|
| 23 |
|
public String contentType() default ""; |
| 24 |
|
|
| 25 |
|
public BlobDescriptorExtension.RenderType renderType() default BlobDescriptorExtension.RenderType.LINK; |
| 26 |
|
|
| 27 |
|
public BlobDescriptorExtension.ContentDisposition contentDisposition() default BlobDescriptorExtension.ContentDisposition.INLINE; |
| 28 |
|
|
| 29 |
|
} |