Add warnings to VaultResponseSupport.

Fixes gh-36.
This commit is contained in:
Mark Paluch
2016-11-30 11:03:59 +01:00
parent a76ad22174
commit 4d337b1923
2 changed files with 19 additions and 1 deletions

View File

@@ -28,6 +28,5 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
* @author Spencer Gibb
* @author Mark Paluch
*/
@JsonIgnoreProperties(ignoreUnknown = false)
public class VaultResponse extends VaultResponseSupport<Map<String, Object>> {
}

View File

@@ -16,6 +16,7 @@
package org.springframework.vault.support;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@@ -51,6 +52,8 @@ public class VaultResponseSupport<T> {
private boolean renewable;
private List<String> warnings;
/**
*
* @return authentication payload.
@@ -178,4 +181,20 @@ public class VaultResponseSupport<T> {
public void setRequestId(String requestId) {
this.requestId = requestId;
}
/**
*
* @return the warnings.
*/
public List<String> getWarnings() {
return warnings;
}
/**
*
* @param warnings the warnings.
*/
public void setWarnings(List<String> warnings) {
this.warnings = warnings;
}
}