Package org.jupnp.model
Klasse Namespace
java.lang.Object
org.jupnp.model.Namespace
Enforces path conventions for all locally offered resources (descriptors, icons, etc.)
Every descriptor, icon, event callback, or action message is send to a URL. This namespace defines how the path of this URL will look like and it will build the path for a given resource.
By default, the namespace is organized as follows:
http://host:port/dev/<udn>/desc.xml
http://host:port/dev/<udn>/svc/<svcIdNamespace>/<svcId>/desc.xml
http://host:port/dev/<udn>/svc/<svcIdNamespace>/<svcId>/action
http://host:port/dev/<udn>/svc/<svcIdNamespace>/<svcId>/event
http://host:port/dev/<ThisIsEitherRootUDN>/svc/<svcIdNamespace>/<svcId>/event/cb.xml
http://host:port/dev/<OrEvenAnEmbeddedDevicesUDN>/svc/<svcIdNamespace>/<svcId>/action
...
The namespace is also used to discover and create all Resources
given a Device's metadata. This procedure is typically
invoked once, when the device is added to the Registry.
- Autor:
- Christian Bauer
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected URIappendPathToBaseURI(String path) getControlPath(Service service) getDescriptorPath(Device device) getDescriptorPath(Service service) getDescriptorPathString(Device device) Performance optimization, avoids URI manipulation.protected StringgetDevicePath(Device device) getEventCallbackPath(Service service) getEventCallbackPathString(Service service) Performance optimization, avoids URI manipulation.getEventSubscriptionPath(Service service) getIconPath(Icon icon) Resource[]getResources(Device device) protected StringgetServicePath(Service service) booleanisControlPath(URI uri) booleanisEventCallbackPath(URI uri) booleanprefixIfRelative(Device device, URI uri)
-
Felddetails
-
DEVICE
- Siehe auch:
-
SERVICE
- Siehe auch:
-
CONTROL
- Siehe auch:
-
EVENTS
- Siehe auch:
-
DESCRIPTOR_FILE
- Siehe auch:
-
CALLBACK_FILE
- Siehe auch:
-
basePath
-
decodedPath
-
-
Konstruktordetails
-
Namespace
public Namespace() -
Namespace
-
Namespace
-
-
Methodendetails
-
getBasePath
-
getPath
-
getPath
-
getDescriptorPath
-
getDescriptorPathString
Performance optimization, avoids URI manipulation. -
getDescriptorPath
-
getControlPath
-
getIconPath
-
getEventSubscriptionPath
-
getEventCallbackPath
-
getEventCallbackPathString
Performance optimization, avoids URI manipulation. -
prefixIfRelative
-
isControlPath
-
isEventSubscriptionPath
-
isEventCallbackPath
-
getResources
- Löst aus:
ValidationException
-
appendPathToBaseURI
-
getDevicePath
-
getServicePath
-