public class UrlResourcePathBuilder extends Object
UrlResourcePaths conveniently.| Constructor and Description |
|---|
UrlResourcePathBuilder() |
| Modifier and Type | Method and Description |
|---|---|
UrlResourcePath |
build()
Finally constructs the ResourcePath
|
UrlResourcePathBuilder |
directory()
Specifies that the current path includes all endpoints in the directory
|
UrlResourcePathBuilder |
isPublic(boolean isPublic)
Specifies if the current path should be public accessible
|
static UrlResourcePathBuilder |
path(String... paths)
Sets the path of the resource.
|
UrlResourcePathBuilder |
publicEvents(Stream<String> publicEvents)
Specifies public events.
|
UrlResourcePathBuilder |
recursive()
Specifies that the current path includes all sub paths
|
UrlResourcePathBuilder |
subPath(UrlResourcePath subPath)
Adds a new
ResourcePath as child of the current path. |
UrlResourcePathBuilder |
subPaths(Stream<UrlResourcePath> subPaths)
Adds new
ResourcePaths as children of the current path. |
public static UrlResourcePathBuilder path(String... paths)
paths - The path partspublic UrlResourcePathBuilder isPublic(boolean isPublic)
isPublic - if true the path should be accessible for publicpublic UrlResourcePathBuilder recursive()
public UrlResourcePathBuilder directory()
public UrlResourcePathBuilder publicEvents(Stream<String> publicEvents)
publicEvents - The public eventspublic UrlResourcePathBuilder subPath(UrlResourcePath subPath)
ResourcePath as child of the current path.subPath - The sub path to be addedpublic UrlResourcePathBuilder subPaths(Stream<UrlResourcePath> subPaths)
ResourcePaths as children of the current path.subPaths - The sub paths to be addedpublic UrlResourcePath build()
Copyright © 2021. All rights reserved.