Package com.sun.xml.ws.developer
Class StreamingAttachmentFeature
java.lang.Object
jakarta.xml.ws.WebServiceFeature
com.sun.xml.ws.developer.StreamingAttachmentFeature
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
FieldsModifier and TypeFieldDescriptionstatic final String
Constant value identifying theStreamingAttachment
feature.Fields inherited from class jakarta.xml.ws.WebServiceFeature
enabled
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingAttachmentFeature
(String dir, boolean parseEagerly, long memoryThreshold) -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration object.getID()
void
Directory in which large attachments are storedvoid
setMemoryThreshold
(long memoryThreshold) After this threshold(no of bytes), large attachments are written to file systemvoid
setParseEagerly
(boolean parseEagerly) StreamingAttachment message is parsed eagerlyMethods inherited from class jakarta.xml.ws.WebServiceFeature
isEnabled
-
Field Details
-
ID
Constant value identifying theStreamingAttachment
feature.- See Also:
-
-
Constructor Details
-
StreamingAttachmentFeature
public StreamingAttachmentFeature() -
StreamingAttachmentFeature
-
-
Method Details
-
getID
- Specified by:
getID
in classjakarta.xml.ws.WebServiceFeature
-
getConfig
Returns the configuration object. Once this is called, you cannot change the configuration. -
setDir
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
-