Interface TemplateProvider
public interface TemplateProvider
Helper class provides access to the templates that construct the Pipe resource. Subclasses may overwrite the provider
to inject their own templates.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringasEndpointProperties(Map<String, Object> props) Creates YAML snippet representing the endpoint properties section.default StringasErrorHandlerParameters(Map<String, Object> props) Creates YAML snippet representing the error handler parameters section.default intGet additional indent that should be applied to endpoint templates.default InputStreamgetEndpointTemplate(String endpointType) default InputStreamdefault InputStreamdefault InputStreamgetStepTemplate(String stepType)
-
Method Details
-
getPipeTemplate
-
getStepTemplate
-
getEndpointTemplate
-
getErrorHandlerTemplate
-
asEndpointProperties
Creates YAML snippet representing the endpoint properties section.- Parameters:
props- the properties to set as endpoint properties.- Returns:
-
asErrorHandlerParameters
Creates YAML snippet representing the error handler parameters section.- Parameters:
props- the properties to set as error handler parameters.
-
getAdditionalIndent
Get additional indent that should be applied to endpoint templates.- Parameters:
type- the endpoint type.- Returns:
-