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

org.openl.rules.webstudio.security.LogoutUrlProvider Maven / Gradle / Ivy

There is a newer version: 5.27.9
Show newest version
package org.openl.rules.webstudio.security;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public class LogoutUrlProvider {
    private final String logoutUrl;
    private String logoutUrlParameters;

    public LogoutUrlProvider(String logoutUrl) {
        this.logoutUrl = logoutUrl;
    }

    @Autowired(required = false)
    @Qualifier("logoutUrlParameters")
    public void setLogoutUrlParameters(String logoutUrlParameters) {
        this.logoutUrlParameters = logoutUrlParameters;
    }

    public String getUrl() {
        return logoutUrl + (logoutUrlParameters != null ? logoutUrlParameters : "");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy