Package com.vaadin.flow.server
Class StreamReceiver
java.lang.Object
com.vaadin.flow.server.AbstractStreamResource
com.vaadin.flow.server.StreamReceiver
- All Implemented Interfaces:
Serializable
@Deprecated(since="24.8",
forRemoval=true)
public class StreamReceiver
extends AbstractStreamResource
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a receiver for data upload from the client.
The instance should be registered via
StreamResourceRegistry.registerResource(AbstractStreamResource)
. This
method returns an object which may be used to get resource URI.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStreamReceiver
(StateNode node, String resourceName, StreamVariable streamVariable) Deprecated, for removal: This API element is subject to removal in a future version.CreatesStreamReceiver
instance forstreamVariable
as a data receiver. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Deprecated, for removal: This API element is subject to removal in a future version.Get the resource name.getNode()
Deprecated, for removal: This API element is subject to removal in a future version.Get the node that this stream receiver is linked to.Deprecated, for removal: This API element is subject to removal in a future version.Get theStreamVariable
for this stream receiver.Methods inherited from class com.vaadin.flow.server.AbstractStreamResource
getCacheTime, getId, setCacheTime
-
Constructor Details
-
StreamReceiver
Deprecated, for removal: This API element is subject to removal in a future version.CreatesStreamReceiver
instance forstreamVariable
as a data receiver.resourceName
parameter value will be used in URI (generated when resource is registered) in a way that theresourceName
is the last segment of the path. So this is synthetic file name (not real one).- Parameters:
node
- receiver noderesourceName
- resource name for registration URIstreamVariable
- stream variable for controlling the upload stream
-
-
Method Details
-
getNode
Deprecated, for removal: This API element is subject to removal in a future version.Get the node that this stream receiver is linked to.- Returns:
- bound node
-
getStreamVariable
Deprecated, for removal: This API element is subject to removal in a future version.Get theStreamVariable
for this stream receiver.- Returns:
- stream variable for this receiver
-
getName
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractStreamResource
Get the resource name.The value will be used in URI (generated when resource is registered) in a way that the
name
is the last segment of the path. So this is a synthetic name.- Specified by:
getName
in classAbstractStreamResource
- Returns:
- resource name
-
UploadHandler
instead