@Test(expected = IllegalArgumentException.class) @Category(UnitTest.class) public void testBoundsFromParamBad() { String param = "66.047475576957,33.021709619141,68.594930410941"; RequestUtils.boundsFromParam(param); }
static Bounds boundsFromParam(String param) { if (param == null) { throw new IllegalArgumentException("Bounding box must be specified."); } log.debug("incoming bounds request: " + param); String[] bBoxValues = param.split(","); if (bBoxValues.length != 4) { throw new IllegalArgumentException("Bounding box must have four comma delimited arguments."); } return new Bounds(Double.valueOf(bBoxValues[0]), Double.valueOf(bBoxValues[1]), Double.valueOf(bBoxValues[2]), Double.valueOf(bBoxValues[3])); }
RequestUtils { static Bounds boundsFromParam(String param) { if (param == null) { throw new IllegalArgumentException("Bounding box must be specified."); } log.debug("incoming bounds request: " + param); String[] bBoxValues = param.split(","); if (bBoxValues.length != 4) { throw new IllegalArgumentException("Bounding box must have four comma delimited arguments."); } return new Bounds(Double.valueOf(bBoxValues[0]), Double.valueOf(bBoxValues[1]), Double.valueOf(bBoxValues[2]), Double.valueOf(bBoxValues[3])); } }
RequestUtils { static Bounds boundsFromParam(String param) { if (param == null) { throw new IllegalArgumentException("Bounding box must be specified."); } log.debug("incoming bounds request: " + param); String[] bBoxValues = param.split(","); if (bBoxValues.length != 4) { throw new IllegalArgumentException("Bounding box must have four comma delimited arguments."); } return new Bounds(Double.valueOf(bBoxValues[0]), Double.valueOf(bBoxValues[1]), Double.valueOf(bBoxValues[2]), Double.valueOf(bBoxValues[3])); }  }
RequestUtils { static Bounds boundsFromParam(String param) { if (param == null) { throw new IllegalArgumentException("Bounding box must be specified."); } log.debug("incoming bounds request: " + param); String[] bBoxValues = param.split(","); if (bBoxValues.length != 4) { throw new IllegalArgumentException("Bounding box must have four comma delimited arguments."); } return new Bounds(Double.valueOf(bBoxValues[0]), Double.valueOf(bBoxValues[1]), Double.valueOf(bBoxValues[2]), Double.valueOf(bBoxValues[3])); }  static String buildBaseURI(UriInfo uriInfo, HttpHeaders headers); static String buildURI(String baseUri, MultivaluedMap<String, String> params); static MultivaluedMap<String, String> replaceParam(String name, String value, MultivaluedMap<String, String> params); static MultivaluedMap<String, String> replaceParam(String name, List<String> values,
    MultivaluedMap<String, String> params); static MrsImageDataProvider[] getPyramidFilesList(
    ProviderProperties providerProperties); static Bounds reprojectBounds(Bounds bounds, String srs); static Bounds reprojectBoundsToWGS84(Bounds bounds, String srs); }
RequestUtils { static Bounds boundsFromParam(String param) { if (param == null) { throw new IllegalArgumentException("Bounding box must be specified."); } log.debug("incoming bounds request: " + param); String[] bBoxValues = param.split(","); if (bBoxValues.length != 4) { throw new IllegalArgumentException("Bounding box must have four comma delimited arguments."); } return new Bounds(Double.valueOf(bBoxValues[0]), Double.valueOf(bBoxValues[1]), Double.valueOf(bBoxValues[2]), Double.valueOf(bBoxValues[3])); }  static String buildBaseURI(UriInfo uriInfo, HttpHeaders headers); static String buildURI(String baseUri, MultivaluedMap<String, String> params); static MultivaluedMap<String, String> replaceParam(String name, String value, MultivaluedMap<String, String> params); static MultivaluedMap<String, String> replaceParam(String name, List<String> values,
    MultivaluedMap<String, String> params); static MrsImageDataProvider[] getPyramidFilesList(
    ProviderProperties providerProperties); static Bounds reprojectBounds(Bounds bounds, String srs); static Bounds reprojectBoundsToWGS84(Bounds bounds, String srs);  }