coord.put(CONTENT_NAME, logicalName);
coord.put(CONTENT_TYPE, type);
coord.put(HTTP_REQUEST, request);
coord.put(HTTP_RESPONSE, response);
Map output = new HashMap();
NCube routingCube = NCubeManager.getCube(cubeName, version);
if (routingCube == null)
{
throw new IllegalStateException("In order to use the n-cube CDN routing capabilities, " +
"a CdnRouter n-cube must already be loaded, and it's name passed in as CdnRouter.CUBE_NAME");
}
routingCube.getCells(coord, output);
}
catch (Exception e)
{
LOG.error("CdnRouter exception occurred", e);
// Required, so that error message is not double logged.