Package org.jupnp.model.resource
Klasse Resource<M>
java.lang.Object
org.jupnp.model.resource.Resource<M>
- Typparameter:
M- The type of the model object.
- Bekannte direkte Unterklassen:
DeviceDescriptorResource,IconResource,ServiceControlResource,ServiceDescriptorResource,ServiceEventCallbackResource,ServiceEventSubscriptionResource
An addressable object, stored, managed, and accessible through the
Registry.- Autor:
- Christian Bauer
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleangetModel()inthashCode()voidmaintain(List<Runnable> pendingExecutions, ExpirationDetails expirationDetails) Called periodically by the registry to maintain the resource.booleanvoidshutdown()Called by the registry when it stops, in the shutdown thread.toString()
-
Konstruktordetails
-
Resource
- Parameter:
pathQuery- The path and (optional) query URI parts of this resource.model- The model object.
-
-
Methodendetails
-
getPathQuery
-
getModel
-
matches
- Parameter:
pathQuery- A relative URI.- Gibt zurück:
trueif the given URI path and query matches the resource's path and query.
-
maintain
Called periodically by the registry to maintain the resource.NOOP by default.
- Parameter:
pendingExecutions- AddRunnable's to this collection if maintenance code has to run in the background.expirationDetails- The details of this resource's expiration, e.g. when it will expire.
-
shutdown
public void shutdown()Called by the registry when it stops, in the shutdown thread.NOOP by default.
-
equals
-
hashCode
public int hashCode() -
toString
-