Documentation Center

Example reading an item from Java

This example shows how you read an item from a Java proxy client.

void readComponent(ICoreService endpoint, String myUri) throws Exception
{
	ComponentData component = (ComponentData) endpoint.read(myUri, null);

	System.out.println(component.getTitle().getValue());
	System.out.println(component.getContent().getValue());
	System.out.println(component.getVersionInfo().getValue().getCreationDate().getValue().toString());
	System.out.println(component.getSchema().getValue().getIdRef().getValue());
}