|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD,FIELD})
@Documented
@WebServiceFeatureAnnotation(id="http://jax-ws.dev.java.net/features/mime",
bean=StreamingAttachmentFeature.class)
public @interface StreamingAttachmentThis 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 {
}
StreamingAttachmentFeature| Optional Element Summary | |
|---|---|
String |
dir
Directory in which large attachments are stored. |
long |
memoryThreshold
After this threshold(no of bytes per attachment), large attachment is written to file system. |
boolean |
parseEagerly
MIME message is parsed eagerly. |
public abstract String dir
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 in File.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.
public abstract boolean parseEagerly
public abstract long memoryThreshold
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||