Class ExceptionMapperUtils
java.lang.Object
org.apache.storm.daemon.ui.exceptionmappers.ExceptionMapperUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.ws.rs.core.Response
getResponse
(Exception ex, javax.inject.Provider<javax.servlet.http.HttpServletRequest> request) getResponse.static javax.ws.rs.core.Response
getResponse
(Exception ex, javax.ws.rs.core.Response.Status responseStatus, javax.inject.Provider<javax.servlet.http.HttpServletRequest> request) getResponse.static javax.ws.rs.core.Response
getResponse
(AuthorizationException ex, javax.inject.Provider<javax.servlet.http.HttpServletRequest> request) getResponse.
-
Constructor Details
-
ExceptionMapperUtils
public ExceptionMapperUtils()
-
-
Method Details
-
getResponse
public static javax.ws.rs.core.Response getResponse(Exception ex, javax.ws.rs.core.Response.Status responseStatus, javax.inject.Provider<javax.servlet.http.HttpServletRequest> request) getResponse.- Parameters:
ex
- exresponseStatus
- responseStatus- Returns:
- getResponse
-
getResponse
public static javax.ws.rs.core.Response getResponse(AuthorizationException ex, javax.inject.Provider<javax.servlet.http.HttpServletRequest> request) getResponse.- Parameters:
ex
- exrequest
- request- Returns:
- getResponse
-
getResponse
public static javax.ws.rs.core.Response getResponse(Exception ex, javax.inject.Provider<javax.servlet.http.HttpServletRequest> request) getResponse.- Parameters:
ex
- ex- Returns:
- getResponse
-