public interface MethodInvokerFilter
GenericMethodResource can be invoked. For example can be checked permission to invoke method according
to annotation JSR-250.| Modifier and Type | Method and Description |
|---|---|
void |
accept(GenericMethodResource genericMethodResource,
Object[] params)
Check does supplied method can be invoked.
|
void accept(GenericMethodResource genericMethodResource, Object[] params) throws javax.ws.rs.WebApplicationException
genericMethodResource - See GenericMethodResourceparams - actual method parameters that were created from requestjavax.ws.rs.WebApplicationException - if method can not be invoked cause current environment context, e.g. for current user, with current request attributes, etc.
Actual context can be obtained as next ApplicationContextImpl.getCurrent(). WebApplicationException should contain
Response with corresponded status and message.Copyright © 2015. All rights reserved.