public void initColl(String np) { try { resource = (CollectionImpl) registrySession.getUserRegistry().newCollection(); resource.setPath(np); } catch (RegistryException e) { e.printStackTrace(); } }
collection.setPath(path); if (!mediaType.equals(RegistryConstants.DEFAULT_MEDIA_TYPE)) { collection.setMediaType(mediaType);
.AXIS2_CONF_COLLECTION_NAME; CollectionImpl confCollection = new CollectionImpl(); confCollection.setPath(confPath); confCollection.setMediaType(RegistryConstants.AXIS2_CONF_COLLECTION_MEDIA_TYPE); requestContext.getRegistry().put(confPath, confCollection); .AXIS2_SERVICES_COLLECTION_NAME; CollectionImpl servicesCollection = new CollectionImpl(); servicesCollection.setPath(servicesPath); servicesCollection.setMediaType(RegistryConstants.AXIS2_SERVICES_COLLECTION_MEDIA_TYPE); requestContext.getRegistry().put(servicesPath, servicesCollection); .AXIS2_MODULES_COLLECTION_NAME; CollectionImpl modulesCollection = new CollectionImpl(); modulesCollection.setPath(modulesPath); modulesCollection.setMediaType(RegistryConstants.AXIS2_MODULES_COLLECTION_MEDIA_TYPE); requestContext.getRegistry().put(modulesPath, modulesCollection);
.SYNAPSE_CONF_COLLECTION_NAME; CollectionImpl confCollection = new CollectionImpl(); confCollection.setPath(confPath); confCollection.setMediaType(RegistryConstants.SYNAPSE_CONF_COLLECTION_MEDIA_TYPE); requestContext.getRegistry().put(confPath, confCollection); RegistryConstants.SYNAPSE_SEQUENCES_COLLECTION_NAME; CollectionImpl seqCollection = new CollectionImpl(); seqCollection.setPath(seqPath); seqCollection.setMediaType(RegistryConstants.SYNAPSE_SEQUENCE_COLLECTION_MEDIA_TYPE); requestContext.getRegistry().put(seqPath, seqCollection); RegistryConstants.SYNAPSE_ENDPOINT_COLLECTION_NAME; CollectionImpl epCollection = new CollectionImpl(); epCollection.setPath(epPath); epCollection.setMediaType(RegistryConstants.SYNAPSE_ENDPOINT_COLLECTION_MEDIA_TYPE); requestContext.getRegistry().put(epPath, epCollection); RegistryConstants.SYNAPSE_PROXY_SERVICES_COLLECTION_NAME; CollectionImpl proxyCollection = new CollectionImpl(); proxyCollection.setPath(proxyServicesPath); proxyCollection .setMediaType(RegistryConstants.SYNAPSE_PROXY_SERVICES_COLLECTION_MEDIA_TYPE); RegistryConstants.SYNAPSE_TASKS_COLLECTION_NAME; CollectionImpl tasksCollection = new CollectionImpl(); tasksCollection.setPath(tasksPath); tasksCollection.setMediaType(RegistryConstants.SYNAPSE_TASKS_COLLECTION_MEDIA_TYPE); requestContext.getRegistry().put(tasksPath, tasksCollection);