@ManagedData public final class StreamingAttachmentFeature extends WebServiceFeature
for e.g.: To configure all StreamingAttachment attachments to be kept in memoryStreamingAttachmentFeature feature = new StreamingAttachmentFeature(); feature.setAllMemory(true); proxy = HelloService().getHelloPort(feature);
| Modifier and Type | Field and Description |
|---|---|
static String |
ID
Constant value identifying the
@StreamingAttachment feature. |
enabled| Constructor and Description |
|---|
StreamingAttachmentFeature() |
StreamingAttachmentFeature(String dir,
boolean parseEagerly,
long memoryThreshold) |
| Modifier and Type | Method and Description |
|---|---|
org.jvnet.mimepull.MIMEConfig |
getConfig()
Returns the configuration object.
|
String |
getID() |
void |
setDir(String dir)
Directory in which large attachments are stored
|
void |
setMemoryThreshold(long memoryThreshold)
After this threshold(no of bytes), large attachments are
written to file system
|
void |
setParseEagerly(boolean parseEagerly)
StreamingAttachment message is parsed eagerly
|
isEnabledpublic static final String ID
@StreamingAttachment feature.public StreamingAttachmentFeature()
public StreamingAttachmentFeature(@Nullable
String dir,
boolean parseEagerly,
long memoryThreshold)
@ManagedAttribute public String getID()
getID in class WebServiceFeature@ManagedAttribute public org.jvnet.mimepull.MIMEConfig getConfig()
public void setDir(String dir)
public void setParseEagerly(boolean parseEagerly)
public void setMemoryThreshold(long memoryThreshold)
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.