public interface StreamRegistration extends Serializable
Use getResourceUri()
to get URI after StreamResource
/
StreamReceiver
is registered.
Also allows resource unregistering.
Modifier and Type | Method and Description |
---|---|
AbstractStreamResource |
getResource()
Get the stream resource whose registration result is represented by this
StreamRegistration instance. |
URI |
getResourceUri()
Get resource URI for registered
StreamResource instance. |
void |
unregister()
Unregister
StreamResource . |
URI getResourceUri()
StreamResource
instance.
The URI is relative to the application base URI.
void unregister()
StreamResource
.
The resource will be removed from the session and its URI won't be served by the application anymore so that the resource becomes available for GC.
It's the developer's responsibility to call this method at the appropriate time. Otherwise the resource instance will stay in memory until the session expires.
AbstractStreamResource getResource()
StreamRegistration
instance.Copyright © 2022. All rights reserved.