public abstract class AbstractStreamResource extends Object implements Serializable
Constructor and Description |
---|
AbstractStreamResource() |
Modifier and Type | Method and Description |
---|---|
long |
getCacheTime()
Gets the length of cache expiration time.
|
String |
getId()
Gets unique identifier of the resource.
|
abstract String |
getName()
Get the resource name.
|
AbstractStreamResource |
setCacheTime(long cacheTime)
Set cache time in millis.
|
public long getCacheTime()
Default value is 0
. So caching is disabled.
public AbstractStreamResource setCacheTime(long cacheTime)
cacheTime
- cache timepublic String getId()
public abstract String getName()
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.
Copyright © 2019. All rights reserved.