public static class ResolvePathHandler.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
ResolvePathHandler |
build()
Builds the resolve path handler.
|
static ResolvePathHandler.Builder |
of(PathManager pathManager)
Creates a builder with the default operation name of
resolve-path. |
static ResolvePathHandler.Builder |
of(String operationName,
PathManager pathManager)
Deprecated.
|
ResolvePathHandler.Builder |
setCheckAbsolutePath(boolean checkAbsolutePath)
Sets whether the path is absolute and should ignore the relative-to value.
|
ResolvePathHandler.Builder |
setDeprecated(ModelVersion since) |
ResolvePathHandler.Builder |
setParentAttribute(AttributeDefinition parentAttribute)
Sets the parent attribute that the
relative-to and path attributes are children of. |
ResolvePathHandler.Builder |
setPathAttribute(AttributeDefinition pathAttribute)
Sets the
path attribute. |
ResolvePathHandler.Builder |
setRelativeToAttribute(AttributeDefinition relativeToAttribute)
Sets the
relative-to attribute. |
public static ResolvePathHandler.Builder of(PathManager pathManager)
resolve-path.pathManager - the path manager used to resolve the path@Deprecated public static ResolvePathHandler.Builder of(String operationName, PathManager pathManager)
operationName parameter.
While this seems odd to add a deprecated method from the start, the transaction extension requires a
separate operation as there are two relative paths. Other extensions should not use this method and if the
transaction subsystem changes to use a proper resource for the object-store, this method should be
removed.operationName - the name of the operation to registerpathManager - the path manager used to resolve the pathpublic ResolvePathHandler build()
public ResolvePathHandler.Builder setParentAttribute(AttributeDefinition parentAttribute)
relative-to and path attributes are children of. A value
of null indicates they are a direct decedent of the resource.parentAttribute - the parent attributepublic ResolvePathHandler.Builder setRelativeToAttribute(AttributeDefinition relativeToAttribute)
relative-to attribute. The default value is PathResourceDefinition.RELATIVE_TO.relativeToAttribute - the relative to attributepublic ResolvePathHandler.Builder setPathAttribute(AttributeDefinition pathAttribute)
path attribute. The default value is PathResourceDefinition.PATH.pathAttribute - the path to attributepublic ResolvePathHandler.Builder setDeprecated(ModelVersion since)
public ResolvePathHandler.Builder setCheckAbsolutePath(boolean checkAbsolutePath)
checkAbsolutePath - {code true} if an absolute path should ignore the relative-to valueCopyright © 2017 JBoss by Red Hat. All rights reserved.