Class AuthorizedUserFilter
java.lang.Object
org.apache.storm.daemon.ui.filters.AuthorizedUserFilter
- All Implemented Interfaces:
javax.ws.rs.container.ContainerRequestFilter
@Provider
public class AuthorizedUserFilter
extends Object
implements javax.ws.rs.container.ContainerRequestFilter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.slf4j.Logger
static IAuthorizer
static IAuthorizer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(javax.ws.rs.container.ContainerRequestContext containerRequestContext) static javax.ws.rs.core.Response
makeResponse
(Exception ex, javax.ws.rs.container.ContainerRequestContext request, int statusCode) makeResponse.
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
conf
-
uiImpersonationHandler
-
uiAclHandler
-
-
Constructor Details
-
AuthorizedUserFilter
public AuthorizedUserFilter()
-
-
Method Details
-
makeResponse
public static javax.ws.rs.core.Response makeResponse(Exception ex, javax.ws.rs.container.ContainerRequestContext request, int statusCode) makeResponse.- Parameters:
ex
- exrequest
- requeststatusCode
- statusCode- Returns:
- error response
-
filter
public void filter(javax.ws.rs.container.ContainerRequestContext containerRequestContext) - Specified by:
filter
in interfacejavax.ws.rs.container.ContainerRequestFilter
-