Package org.jgrapes.webconsole.base
Class ResourceByInputStream
java.lang.Object
org.jgrapes.webconsole.base.ResourceResult
org.jgrapes.webconsole.base.ResourceByInputStream
Returns an
OutputStream
as result.-
Constructor Summary
ConstructorDescriptionResourceByInputStream
(ResourceRequest request, InputStream stream, org.jdrupes.httpcodec.types.MediaType mediaType, Instant lastModifiedAt, int maxAge) Instantiates a result that is provided by anOutputStream
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
process()
Specifies hoe the provided resource is processed.Methods inherited from class org.jgrapes.webconsole.base.ResourceResult
request
-
Constructor Details
-
ResourceByInputStream
public ResourceByInputStream(ResourceRequest request, InputStream stream, org.jdrupes.httpcodec.types.MediaType mediaType, Instant lastModifiedAt, int maxAge) Instantiates a result that is provided by anOutputStream
.- Parameters:
request
- the requeststream
- the streammediaType
- the media type, may benull
lastModifiedAt
- the last modified atmaxAge
- the max age
-
-
Method Details
-
process
Description copied from class:ResourceResult
Specifies hoe the provided resource is processed.- Specified by:
process
in classResourceResult
- Throws:
IOException
InterruptedException
-