public class StreamReceiver extends AbstractStreamResource
The instance should be registered via
StreamResourceRegistry.registerResource(AbstractStreamResource)
. This
method returns an object which may be used to get resource URI.
Constructor and Description |
---|
StreamReceiver(StateNode node,
String resourceName,
StreamVariable streamVariable)
Creates
StreamReceiver instance for streamVariable as a
data receiver. |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the resource name.
|
StateNode |
getNode()
Get the node that this stream receiver is linked to.
|
StreamVariable |
getStreamVariable()
Get the
StreamVariable for this stream receiver. |
getCacheTime, getId, setCacheTime
public StreamReceiver(StateNode node, String resourceName, StreamVariable streamVariable)
StreamReceiver
instance for streamVariable
as a
data receiver.
resourceName
parameter value will be used in URI (generated when
resource is registered) in a way that the resourceName
is the
last segment of the path. So this is synthetic file name (not real one).
node
- receiver noderesourceName
- resource name for registration URIstreamVariable
- stream variable for controlling the upload streampublic StateNode getNode()
public StreamVariable getStreamVariable()
StreamVariable
for this stream receiver.public String getName()
AbstractStreamResource
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.
getName
in class AbstractStreamResource
Copyright © 2025. All rights reserved.