All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.viadee.camunda.kafka.pollingclient.config.properties.CamundaRestPollingProperties Maven / Gradle / Ivy

package de.viadee.camunda.kafka.pollingclient.config.properties;

import org.apache.commons.lang3.StringUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Properties for polling using Camunda REST API
 *
 * @author viadee
 * @version $Id: $Id
 */
@ConfigurationProperties(prefix = "polling.camunda.rest")
public class CamundaRestPollingProperties {

    private static final String DEFAULT_DATE_FORMAT_PATTERN = "yyyy-MM-dd'T'HH:mm:ss.SSSZ";

    /**
     * URL of Camunda REST API
     */
    private String url;

    /**
     * Username used for authentication
     */
    private String username;

    /**
     * Password used for authentication
     */
    private String password;

    /**
     * Source Time Zone used for Date formatting
     */
    private String sourceTimeZone;

    /**
     * The pattern string for Date formatter.
     */
    private String dateFormatPattern;

    /**
     * 

* isAuthenticationEnabled. *

* * @return a boolean. */ public boolean isAuthenticationEnabled() { return StringUtils.isNotEmpty(username); } /** * URL of Camunda REST API */ @java.lang.SuppressWarnings("all") public String getUrl() { return this.url; } /** * Username used for authentication */ @java.lang.SuppressWarnings("all") public String getUsername() { return this.username; } /** * Password used for authentication */ @java.lang.SuppressWarnings("all") public String getPassword() { return this.password; } /** * Source Time Zone used for Date formatting */ @SuppressWarnings("all") public String getSourceTimeZone() { return sourceTimeZone; } /** * The pattern string for Date formatter. */ @java.lang.SuppressWarnings("all") public String getDateFormatPattern() { if (dateFormatPattern == null || dateFormatPattern.isEmpty()) dateFormatPattern = DEFAULT_DATE_FORMAT_PATTERN; return dateFormatPattern; } /** * URL of Camunda REST API */ @java.lang.SuppressWarnings("all") public void setUrl(final String url) { this.url = url; } /** * Username used for authentication */ @java.lang.SuppressWarnings("all") public void setUsername(final String username) { this.username = username; } /** * Password used for authentication */ @java.lang.SuppressWarnings("all") public void setPassword(final String password) { this.password = password; } /** * Source Time Zone used for Date formatting */ @SuppressWarnings("all") public void setSourceTimeZone(String sourceTimeZone) { this.sourceTimeZone = sourceTimeZone; } /** * The pattern string for Date formatter. */ @SuppressWarnings("all") public void setDateFormatPattern(String dateFormatPattern) { this.dateFormatPattern = dateFormatPattern; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy