Package com.sun.xml.ws.developer
Class StreamingAttachmentFeature
- java.lang.Object
-
- javax.xml.ws.WebServiceFeature
-
- com.sun.xml.ws.developer.StreamingAttachmentFeature
-
@ManagedData public final class StreamingAttachmentFeature extends javax.xml.ws.WebServiceFeatureProxy needs to be created with this feature to configure StreamingAttachment attachments behaviour.for e.g.: To configure all StreamingAttachment attachments to be kept in memory StreamingAttachmentFeature feature = new StreamingAttachmentFeature(); feature.setAllMemory(true); proxy = HelloService().getHelloPort(feature);
- Author:
- Jitendra Kotamraju
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDConstant value identifying theStreamingAttachmentfeature.
-
Constructor Summary
Constructors Constructor Description StreamingAttachmentFeature()StreamingAttachmentFeature(String dir, boolean parseEagerly, long memoryThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MIMEConfiggetConfig()Returns the configuration object.StringgetID()voidsetDir(String dir)Directory in which large attachments are storedvoidsetMemoryThreshold(long memoryThreshold)After this threshold(no of bytes), large attachments are written to file systemvoidsetParseEagerly(boolean parseEagerly)StreamingAttachment message is parsed eagerly
-
-
-
Field Detail
-
ID
public static final String ID
Constant value identifying theStreamingAttachmentfeature.- See Also:
- Constant Field Values
-
-
Method Detail
-
getID
@ManagedAttribute public String getID()
- Specified by:
getIDin classjavax.xml.ws.WebServiceFeature
-
getConfig
@ManagedAttribute public MIMEConfig getConfig()
Returns the configuration object. Once this is called, you cannot change the configuration.- Returns:
-
setDir
public void setDir(String dir)
Directory in which large attachments are stored
-
setParseEagerly
public void setParseEagerly(boolean parseEagerly)
StreamingAttachment message is parsed eagerly
-
setMemoryThreshold
public void setMemoryThreshold(long memoryThreshold)
After this threshold(no of bytes), large attachments are written to file system
-
-