public URI getEventSubscriptionPath(Service service) { return appendPathToBaseURI(getServicePath(service) + EVENTS); }
public URI prefixIfRelative(Device device, URI uri) { if (!uri.isAbsolute() && !uri.getPath().startsWith("/")) { return appendPathToBaseURI(getDevicePath(device) + "/" + uri); } return uri; }
public URI getPath(Device device) { return appendPathToBaseURI(getDevicePath(device)); }
public URI getEventCallbackPath(Service service) { return appendPathToBaseURI(getServicePath(service) + EVENTS + CALLBACK_FILE); }
public URI getPath(Service service) { return appendPathToBaseURI(getServicePath(service)); }
public URI getDescriptorPath(Service service) { return appendPathToBaseURI(getServicePath(service) + DESCRIPTOR_FILE); }
public URI getControlPath(Service service) { return appendPathToBaseURI(getServicePath(service) + CONTROL); }
public URI getDescriptorPath(Device device) { return appendPathToBaseURI(getDevicePath(device.getRoot()) + DESCRIPTOR_FILE); }
public URI getIconPath(Icon icon) { return appendPathToBaseURI(getDevicePath(icon.getDevice()) + "/" + icon.getUri().toString()); }
public URI getDescriptorPath(Service service) { return appendPathToBaseURI(getServicePath(service) + DESCRIPTOR_FILE); }
public URI prefixIfRelative(Device device, URI uri) { if (!uri.isAbsolute() && !uri.getPath().startsWith("/")) { return appendPathToBaseURI(getDevicePath(device) + "/" + uri); } return uri; }
public URI getPath(Device device) { return appendPathToBaseURI(getDevicePath(device)); }
public URI getPath(Service service) { return appendPathToBaseURI(getServicePath(service)); }
public URI getEventSubscriptionPath(Service service) { return appendPathToBaseURI(getServicePath(service) + EVENTS); }
public URI getEventCallbackPath(Service service) { return appendPathToBaseURI(getServicePath(service) + EVENTS + CALLBACK_FILE); }
public URI getControlPath(Service service) { return appendPathToBaseURI(getServicePath(service) + CONTROL); }
public URI getDescriptorPath(Device device) { return appendPathToBaseURI(getDevicePath(device.getRoot()) + DESCRIPTOR_FILE); }
public URI getIconPath(Icon icon) { return appendPathToBaseURI(getDevicePath(icon.getDevice()) + "/" + icon.getUri().toString()); }