public class ProtectedPropertyContext extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
contextName |
private static String |
DEFAULT_CONTEXT |
private String |
propertyName |
| Modifier | Constructor and Description |
|---|---|
private |
ProtectedPropertyContext(String propertyName,
String contextName)
Creates a property context with a property name and custom location.
|
| Modifier and Type | Method and Description |
|---|---|
static ProtectedPropertyContext |
contextFor(String propertyName,
String contextName)
Creates a ProtectedPropertyContext for the given property name, with a specific context name, acting as
a namespace for the property.
|
static ProtectedPropertyContext |
defaultContext(String propertyName)
Creates a ProtectedPropertyContext for the given property name, using the default context.
|
String |
getContextKey()
Returns the context key, in the format [contextName]/[propertyName]
|
String |
getContextName()
Returns the context name
|
String |
getPropertyName()
Returns the property name
|
private static final String DEFAULT_CONTEXT
private final String propertyName
private final String contextName
public static ProtectedPropertyContext contextFor(String propertyName, String contextName)
propertyName - The property name in this locationcontextName - A custom context name. If null, the default context will be assigned.public static ProtectedPropertyContext defaultContext(String propertyName)
propertyName - The property name in this locationpublic String getContextKey()
public String getPropertyName()
public String getContextName()
Copyright © 2023 Apache NiFi Project. All rights reserved.