Search in sources :

Example 1 with ErrorResponseFactory

use of org.gluu.oxauth.model.error.ErrorResponseFactory in project oxAuth by GluuFederation.

the class ConfigurationFactory method reloadErrorsFromFile.

private boolean reloadErrorsFromFile() {
    final ErrorMessages errorsFromFile = loadErrorsFromFile();
    if (errorsFromFile != null) {
        log.info("Reloaded errors from file: " + errorsFilePath);
        errorResponseFactory = new ErrorResponseFactory(errorsFromFile, conf);
        return true;
    } else {
        log.error("Failed to load errors from file: " + errorsFilePath);
    }
    return false;
}
Also used : ErrorMessages(org.gluu.oxauth.model.error.ErrorMessages) ErrorResponseFactory(org.gluu.oxauth.model.error.ErrorResponseFactory)

Aggregations

ErrorMessages (org.gluu.oxauth.model.error.ErrorMessages)1 ErrorResponseFactory (org.gluu.oxauth.model.error.ErrorResponseFactory)1