Package com.sun.xml.ws.developer
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:
StreamingAttachmentFeature
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringdirDirectory in which large attachments are stored.longmemoryThresholdAfter this threshold(no of bytes per attachment), large attachment is written to file system.booleanparseEagerlyMIME message is parsed eagerly.
-
-
-
Element Detail
-
dir
String dir
Directory in which large attachments are stored.File.createTempFile(java.lang.String, java.lang.String, java.io.File)methods are used to create temp files for storing attachments. This value is used inFile.createTempFile(java.lang.String, java.lang.String, java.io.File), if specified. If a file cannot be created in this dir, then all the content is kept in memory.- Default:
- ""
-
-