public interface ResourceTransformationDescriptionBuilder extends TransformationDescriptionBuilder
TransformationDescriptionBuilder.Factory
Modifier and Type | Method and Description |
---|---|
ResourceTransformationDescriptionBuilder |
addChildBuilder(TransformationDescriptionBuilder builder)
Add an already created
TransformationDescriptionBuilder as a child of this builder. |
ResourceTransformationDescriptionBuilder |
addChildRedirection(PathElement pathElement,
PathAddressTransformer pathAddressTransformer)
Add a child resource, where all operation will get redirected to a different address defined by
the path transformation.
|
ResourceTransformationDescriptionBuilder |
addChildRedirection(PathElement pathElement,
PathAddressTransformer pathAddressTransformer,
DynamicDiscardPolicy dynamicDiscardPolicy)
Add a child resource, where all operation will get redirected to a different address defined by
the path transformation.
|
ResourceTransformationDescriptionBuilder |
addChildRedirection(PathElement current,
PathElement legacy)
Add a child resource, where all operations will get redirected to the legacy address.
|
ResourceTransformationDescriptionBuilder |
addChildRedirection(PathElement current,
PathElement legacy,
DynamicDiscardPolicy dynamicDiscardPolicy)
Add a child resource, where all operations will get redirected to the legacy address.
|
ResourceTransformationDescriptionBuilder |
addChildResource(PathElement pathElement)
Add a child resource to this builder.
|
ResourceTransformationDescriptionBuilder |
addChildResource(PathElement pathElement,
DynamicDiscardPolicy dynamicDiscardPolicy)
Add a child resource to this builder.
|
ResourceTransformationDescriptionBuilder |
addChildResource(ResourceDefinition definition)
Add a child resource to this builder.
|
ResourceTransformationDescriptionBuilder |
addChildResource(ResourceDefinition definition,
DynamicDiscardPolicy dynamicDiscardPolicy)
Add a child resource to this builder.
|
OperationTransformationOverrideBuilder |
addOperationTransformationOverride(String operationName)
Add an operation transformation entry for a given operation.
|
ResourceTransformationDescriptionBuilder |
addRawOperationTransformationOverride(String operationName,
OperationTransformer operationTransformer)
Add an operation transformer.
|
DiscardTransformationDescriptionBuilder |
discardChildResource(PathElement pathElement)
Recursively discards all child resources and its operations.
|
ResourceTransformationDescriptionBuilder |
discardOperations(String... operationNames)
Don't forward and just discard the operation.
|
AttributeTransformationDescriptionBuilder |
getAttributeBuilder()
Get a builder to define custom attribute transformation rules.
|
RejectTransformationDescriptionBuilder |
rejectChildResource(PathElement pathElement)
Recursively rejects all child resources and its operations
|
ResourceTransformationDescriptionBuilder |
setCustomResourceTransformer(ResourceTransformer resourceTransformer)
Set an optional custom resource transformer.
|
build
AttributeTransformationDescriptionBuilder getAttributeBuilder()
OperationTransformationOverrideBuilder addOperationTransformationOverride(String operationName)
operationName
- the operation nameResourceTransformationDescriptionBuilder addRawOperationTransformationOverride(String operationName, OperationTransformer operationTransformer)
operationName
- the operation nameoperationTransformer
- the operation transformerResourceTransformationDescriptionBuilder setCustomResourceTransformer(ResourceTransformer resourceTransformer)
getAttributeBuilder()
and needs to take care of adding the currently transformed resource properly. If not specified,
the resource will be added according to other rules defined by this builder.resourceTransformer
- the resource transformerResourceTransformationDescriptionBuilder addChildResource(PathElement pathElement)
pathElement
- the path elementResourceTransformationDescriptionBuilder addChildResource(PathElement pathElement, DynamicDiscardPolicy dynamicDiscardPolicy)
pathElement
- the path elementdynamicDiscardPolicy
- a checker to decide whether the child should be added or notResourceTransformationDescriptionBuilder addChildResource(ResourceDefinition definition)
definition
- the resource definitionResourceTransformationDescriptionBuilder addChildResource(ResourceDefinition definition, DynamicDiscardPolicy dynamicDiscardPolicy)
definition
- the resource definitiondynamicDiscardPolicy
- a checker to decide whether the child should be added or notDiscardTransformationDescriptionBuilder discardChildResource(PathElement pathElement)
pathElement
- the path elementRejectTransformationDescriptionBuilder rejectChildResource(PathElement pathElement)
pathElement
- the path elementResourceTransformationDescriptionBuilder addChildRedirection(PathElement current, PathElement legacy)
current:addr1=test
+ legacy:addr2=toast
, in which case addr1=test
gets redirected to addr2=toast
}current:addr1=*
+ legacy:addr2=*
, in which case addr1=test
gets redirected to addr2=test
,
addr1=ping
gets redirected to addr2=ping
, etc.current
- the current path elementlegacy
- the legacy path element.ResourceTransformationDescriptionBuilder addChildRedirection(PathElement current, PathElement legacy, DynamicDiscardPolicy dynamicDiscardPolicy)
current:addr1=test
+ legacy:addr2=toast
, in which case addr1=test
gets redirected to addr2=toast
}current:addr1=*
+ legacy:addr2=*
, in which case addr1=test
gets redirected to addr2=test
,
addr1=ping
gets redirected to addr2=ping
, etc.current
- the current path elementlegacy
- the legacy path element.dynamicDiscardPolicy
- a checker to decide whether the child should be added or notResourceTransformationDescriptionBuilder addChildRedirection(PathElement pathElement, PathAddressTransformer pathAddressTransformer)
pathElement
- the path element of the childpathAddressTransformer
- the path transformationResourceTransformationDescriptionBuilder addChildRedirection(PathElement pathElement, PathAddressTransformer pathAddressTransformer, DynamicDiscardPolicy dynamicDiscardPolicy)
pathElement
- the path element of the childpathAddressTransformer
- the path transformationdynamicDiscardPolicy
- a checker to decide whether the child should be added or notResourceTransformationDescriptionBuilder addChildBuilder(TransformationDescriptionBuilder builder)
TransformationDescriptionBuilder
as a child of this builder.builder
- the builderResourceTransformationDescriptionBuilder discardOperations(String... operationNames)
operationNames
- the operation namesCopyright © 2023 JBoss by Red Hat. All rights reserved.