public GeoJSONGetFeatureResponse(GeoServer gs, String format) { super(gs, format); jsonp = JSONType.isJsonpMimeType(format); }
/** * Check if the passed MimeType is a valid jsonp and if jsonp is enabled * * @param type the MimeType string representation to check * @return true if type is equalsIgnoreCase to {@link #jsonp} and jsonp is enabled * @see {@link JSONType#isJsonMimeType(String)} */ public static boolean useJsonp(String type) { return JSONType.isJsonpEnabled() && JSONType.isJsonpMimeType(type); }