The version related information is saved to version store but is there any api available to get the version store details. My requirement is to retrieve the version content using web scripts from a custom java web application.
It depends on which version implementation you are using . Alfresco 1.x, 2.x (and also Labs 3a) is using version1 store implementation whose store is "workspace://lightWeightVersionStore"; Alfresco 3.x (since Labs 3b) is using version2 store implementation whose store is "workspace://version2Store";
A store is identified by Protocol( store type) and Identifier(store id) ,for example in "workspace://SpacesStore" workspace is protocol and SpacesStore is identifer. So "workspace://version2Store"; workspace is store type(protocol) ,version2Store is store id(identifier)d