Interface StreamValueInjector

All Superinterfaces:
ValueInjector
All Known Implementing Classes:
HttpServletResponseValueInjector

public interface StreamValueInjector extends ValueInjector
A ValueInjector for streams to indicate if content is available in the injected value.

This is useful for wrapping input or output streams which may contain content.

Since:
8.0
Author:
James R. Perkins
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if there is content for the stream value injected for the request available.

    Methods inherited from interface ValueInjector

    inject, inject
  • Method Details

    • isContentAvailable

      boolean isContentAvailable(HttpRequest request)
      Checks if there is content for the stream value injected for the request available.
      Parameters:
      request - the current request
      Returns:
      true if there is content available, otherwise false