| com.sun.xml.ws.developer.StreamingAttachmentFeature
StreamingAttachmentFeature | final public class StreamingAttachmentFeature extends WebServiceFeature (Code) | | Proxy 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 | |
final public static String | ID Constant value identifying the
@StreamingAttachment feature. |
ID | final public static String ID(Code) | | Constant value identifying the
@StreamingAttachment feature.
|
StreamingAttachmentFeature | public StreamingAttachmentFeature()(Code) | | |
StreamingAttachmentFeature | public StreamingAttachmentFeature(String dir, boolean parseEagerly, long memoryThreshold)(Code) | | |
getConfig | public MIMEConfig getConfig()(Code) | | Returns the configuration object. Once this is called, you cannot
change the configuration.
|
setDir | public void setDir(String dir)(Code) | | Directory in which large attachments are stored
|
setMemoryThreshold | public void setMemoryThreshold(int memoryThreshold)(Code) | | After this threshold(no of bytes), large attachments are
written to file system
|
setParseEagerly | public void setParseEagerly(boolean parseEagerly)(Code) | | StreamingAttachment message is parsed eagerly
|
|
|