Class RestUtils

java.lang.Object
com.vireocode.vireo.web.RestUtils

public final class RestUtils extends Object
  • Method Details

    • notFound

      public static org.springframework.web.server.ResponseStatusException notFound(String param, String value)
    • badRequest

      public static org.springframework.web.server.ResponseStatusException badRequest(String message)
    • forbidden

      public static org.springframework.web.server.ResponseStatusException forbidden(String message)
    • conflict

      public static org.springframework.web.server.ResponseStatusException conflict(String message)
    • unauthorized

      public static org.springframework.web.server.ResponseStatusException unauthorized(String message)
    • internalServerError

      public static org.springframework.web.server.ResponseStatusException internalServerError(String message)
    • notImplemented

      public static org.springframework.web.server.ResponseStatusException notImplemented(String message)
    • makePageable

      public static SearchablePageable makePageable(int page, int rowsPerPage, String sortBy, String sortDirection, String searchText)
    • getCurrentPrincipal

      public static <T> Optional<T> getCurrentPrincipal(Class<T> principalType)