@Retention(value=RUNTIME) @Target(value={TYPE,METHOD,FIELD}) @Documented @WebServiceFeatureAnnotation(id="http://jax-ws.dev.java.net/features/mime", bean=StreamingAttachmentFeature.class) public @interface StreamingAttachment
for e.g.: To keep all MIME attachments in memory, do the following
@WebService @MIME(memoryThreshold=-1L) public class HelloService { }
StreamingAttachmentFeature
Modifier and Type | Optional Element and Description |
---|---|
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
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.