public function getMime() {
        switch(strtolower(pathinfo($this->path, PATHINFO_EXTENSION))) {
            case 'json':
                $mime = 'application/json';
                break;
            case 'geojson':
                $mime = 'application/vnd.geo+json';
                break;
            default:
                $mime = @mime_content_type($this->path);
        }
        return $mime;
    }