Solved
How to convert a Node to a Resource?
Basically I am looking for the reverse of:
Node node = resource.adaptTo(Node.class)
How can this be done?
Basically I am looking for the reverse of:
Node node = resource.adaptTo(Node.class)
How can this be done?
Hi,
You can do this by using the AdapterManager OSGi service and:
adapterManager.getAdapter(node, Resource.class);
Regards,
Justin
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.