Class StreamWriteFilter

    • Field Detail

      • DEFAULT_STREAM_BUFFER_SIZE

        public static final int DEFAULT_STREAM_BUFFER_SIZE
        The default buffer size this filter uses for writing.
        See Also:
        Constant Field Values
      • CURRENT_STREAM

        public static final java.lang.String CURRENT_STREAM
        The attribute name used when binding the InputStream to the session.
      • WRITE_REQUEST_QUEUE

        protected static final java.lang.String WRITE_REQUEST_QUEUE
      • INITIAL_WRITE_FUTURE

        protected static final java.lang.String INITIAL_WRITE_FUTURE
    • Constructor Detail

      • StreamWriteFilter

        public StreamWriteFilter()
    • Method Detail

      • getWriteBufferSize

        public int getWriteBufferSize()
        Returns the size of the write buffer in bytes. Data will be read from the stream in chunks of this size and then written to the next filter.
        Returns:
        the write buffer size.
      • setWriteBufferSize

        public void setWriteBufferSize​(int writeBufferSize)
        Sets the size of the write buffer in bytes. Data will be read from the stream in chunks of this size and then written to the next filter.
        Throws:
        java.lang.IllegalArgumentException - if the specified size is < 1.