Class HeaderUtil


  • public final class HeaderUtil
    extends Object
    Utility class for HTTP headers creation.
    • 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)
      • createFailureAlert

        public static org.springframework.http.HttpHeaders createFailureAlert​(String entityName,
                                                                              String errorKey,
                                                                              String defaultMessage)