Package org.geo.spatialsearch.rest.exceptions

Examples of org.geo.spatialsearch.rest.exceptions.UnsupportedFormatException


            } else if (format.equals("jsonp")) {
                return Response.ok()
                        .entity(new JSONWithPadding(response, callback))
                        .type("application/x-javascript").build();
            } else {
                throw new UnsupportedFormatException();
            }
        } else {
            return Response.ok(response.toString())
                    .type(MediaType.APPLICATION_XML).build();
        }
View Full Code Here

TOP

Related Classes of org.geo.spatialsearch.rest.exceptions.UnsupportedFormatException

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.