Search in sources :

Example 1 with FileMeta

use of org.webpieces.router.impl.compression.FileMeta in project webpieces by deanhiller.

the class WebServerImpl method processPath.

private void processPath(URL url, String line, String location, String urlPath) throws UnsupportedEncodingException {
    String path = URLEncoder.decode(urlPath, StandardCharsets.UTF_8);
    FileMeta meta = routingService.relativeUrlToHash(path);
    if (meta == null)
        throw new RouteNotFoundException("backing file for urlPath=" + path + " was not found or route is missing to connect url to path.  url=" + url);
}
Also used : RouteNotFoundException(org.webpieces.router.api.exceptions.RouteNotFoundException) FileMeta(org.webpieces.router.impl.compression.FileMeta)

Aggregations

RouteNotFoundException (org.webpieces.router.api.exceptions.RouteNotFoundException)1 FileMeta (org.webpieces.router.impl.compression.FileMeta)1