Package com.nardoz.restopengov.ckan.models

Examples of com.nardoz.restopengov.ckan.models.Metadata


            String url = (String) message;

            try {
                String response = new Resty().text(url).toString();
                Metadata metadata = new Gson().fromJson(response, Metadata.class);

                metadataPersist.tell(metadata, getSelf());

                for(MetadataResource resource : metadata.resources) {
                    resource.metadata_name = metadata.name;
View Full Code Here


    public void onReceive(Object message) {

        if (message instanceof Metadata) {

            Metadata metadata = (Metadata) message;

            String index = ConfigFactory.load().getString("restopengov.index");

            GetResponse response = client.prepareGet(index, "metadata", metadata.name).execute().actionGet();
View Full Code Here

TOP

Related Classes of com.nardoz.restopengov.ckan.models.Metadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.