Class StreamingAttachmentFeature


  • @ManagedData
    public final class StreamingAttachmentFeature
    extends WebServiceFeature
    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
    • Constructor Detail

      • StreamingAttachmentFeature

        public StreamingAttachmentFeature()
      • StreamingAttachmentFeature

        public StreamingAttachmentFeature​(@Nullable
                                          String dir,
                                          boolean parseEagerly,
                                          long memoryThreshold)
    • Method Detail

      • getConfig

        @ManagedAttribute
        public org.jvnet.mimepull.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