Class HeaderUtil
- java.lang.Object
-
- org.powertac.visualizer.web.rest.util.HeaderUtil
-
public final class HeaderUtil extends Object
Utility class for HTTP headers creation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.http.HttpHeaders
createAlert(String message, String param)
static org.springframework.http.HttpHeaders
createEntityCreationAlert(String entityName, String param)
static org.springframework.http.HttpHeaders
createEntityDeletionAlert(String entityName, String param)
static org.springframework.http.HttpHeaders
createEntityUpdateAlert(String entityName, String param)
static org.springframework.http.HttpHeaders
createFailureAlert(String entityName, String errorKey, String defaultMessage)
-
-
-
Method Detail
-
createAlert
public static org.springframework.http.HttpHeaders createAlert(String message, String param)
-
createEntityCreationAlert
public static org.springframework.http.HttpHeaders createEntityCreationAlert(String entityName, String param)
-
createEntityUpdateAlert
public static org.springframework.http.HttpHeaders createEntityUpdateAlert(String entityName, String param)
-
createEntityDeletionAlert
public static org.springframework.http.HttpHeaders createEntityDeletionAlert(String entityName, String param)
-
-