Interface StreamValueInjector
- All Superinterfaces:
ValueInjector
- All Known Implementing Classes:
HttpServletResponseValueInjector
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 TypeMethodDescriptionbooleanisContentAvailable(HttpRequest request) Checks if there is content for the stream value injected for the request available.Methods inherited from interface ValueInjector
inject, inject
-
Method Details
-
isContentAvailable
Checks if there is content for the stream value injected for the request available.- Parameters:
request- the current request- Returns:
trueif there is content available, otherwisefalse
-