@@ -365,13 +365,13 @@ public static boolean isReservedDocumentId(TYPE type, BsonValue documentId) {
365
365
var sdi = documentId .asString ().getValue ();
366
366
367
367
if ((type == TYPE .COLLECTION_META && sdi .startsWith (COLL_META_DOCID_PREFIX ))
368
- || (type == TYPE .DB_META && sdi .startsWith (DB_META_DOCID ))
369
- || (type == TYPE .BULK_DOCUMENTS && RESOURCES_WILDCARD_KEY .equals (sdi ))
370
- || (type == TYPE .COLLECTION_SIZE && _SIZE .equalsIgnoreCase (sdi ))
371
- || (type == TYPE .INDEX && _INDEXES .equalsIgnoreCase (sdi ))
372
- || (type == TYPE .COLLECTION_META && _META .equalsIgnoreCase (sdi ))
373
- || (type == TYPE .INVALID && _AGGREGATIONS .equalsIgnoreCase (sdi ))
374
- || (type == TYPE .INVALID && _STREAMS .equalsIgnoreCase (sdi ))) {
368
+ || (type == TYPE .DB_META && sdi .startsWith (DB_META_DOCID ))
369
+ || (type == TYPE .BULK_DOCUMENTS && RESOURCES_WILDCARD_KEY .equals (sdi ))
370
+ || (type == TYPE .COLLECTION_SIZE && _SIZE .equalsIgnoreCase (sdi ))
371
+ || (type == TYPE .INDEX && _INDEXES .equalsIgnoreCase (sdi ))
372
+ || (type == TYPE .COLLECTION_META && _META .equalsIgnoreCase (sdi ))
373
+ || (type == TYPE .INVALID && _AGGREGATIONS .equalsIgnoreCase (sdi ))
374
+ || (type == TYPE .INVALID && _STREAMS .equalsIgnoreCase (sdi ))) {
375
375
return false ;
376
376
} else {
377
377
return DB_META_DOCID .equalsIgnoreCase (sdi ) || sdi .startsWith (COLL_META_DOCID_PREFIX );
@@ -511,7 +511,7 @@ private String mongoUriFromPathMatch(String requestPath) {
511
511
mongoUri = mongoUri .replaceFirst ("^" + Pattern .quote (this .whereUri ), "" );
512
512
}
513
513
} else if (!this .whereUri .equals (SLASH )) {
514
- // problem, whereUri can contain regex special chars such as *
514
+ // whereUri can contain regex special chars such as *
515
515
mongoUri = removeTrailingSlashes (mongoUri .replaceFirst ("^" + Pattern .quote (this .whereUri ), this .whatUri ));
516
516
} else {
517
517
mongoUri = removeTrailingSlashes (removeTrailingSlashes (this .whatUri ) + mongoUri );
@@ -547,7 +547,7 @@ private String mongoUriFromPathTemplateMatch(String requestPath) {
547
547
* resources via the mongo-mounts configuration properties
548
548
*
549
549
* @param mongoResourceUri
550
- * @return
550
+ * @return the mapped uri relative to this context.
551
551
*/
552
552
public String requestPathFromMongoUri (String mongoResourceUri ) {
553
553
if (this .pathTemplateMatch == null ) {
@@ -605,7 +605,7 @@ private String resolveTemplate(String template) {
605
605
// eg _whatUri: /{prefix}_db, _whereUri: /{prefix}/*
606
606
for (var key : this .pathTemplateMatch .getParameters ().keySet ()) {
607
607
resolvedTemplate = resolvedTemplate .replace ("{" .concat (key ).concat ("}" ),
608
- this .pathTemplateMatch .getParameters ().get (key ));
608
+ this .pathTemplateMatch .getParameters ().get (key ));
609
609
}
610
610
return removeTrailingSlashes (resolvedTemplate );
611
611
}
@@ -623,8 +623,8 @@ private String resolveTemplate(String template) {
623
623
*/
624
624
public boolean isParentAccessible () {
625
625
return getType () == TYPE .DB
626
- ? getExchange ().getRequestPath ().split (SLASH ).length > 1
627
- : getExchange ().getRequestPath ().split (SLASH ).length > 2 ;
626
+ ? getExchange ().getRequestPath ().split (SLASH ).length > 1
627
+ : getExchange ().getRequestPath ().split (SLASH ).length > 2 ;
628
628
}
629
629
630
630
/**
0 commit comments