Annotation Type StreamingAttachment


@Retention(RUNTIME) @Target({TYPE,METHOD,FIELD}) @Documented @WebServiceFeatureAnnotation(id="http://jax-ws.dev.java.net/features/mime", bean=StreamingAttachmentFeature.class) public @interface StreamingAttachment
This feature represents the use of StreamingAttachment attachments with a web service.

for e.g.: To keep all MIME attachments in memory, do the following

 @WebService
 @MIME(memoryThreshold=-1L)
 public class HelloService {
 }
 
Author:
Jitendra Kotamraju
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Directory in which large attachments are stored.
    long
    After this threshold(no of bytes per attachment), large attachment is written to file system.
    boolean
    MIME message is parsed eagerly.