Package org.apache.shiro.web.jaxrs
Class ShiroFeature
- java.lang.Object
-
- org.apache.shiro.web.jaxrs.ShiroFeature
-
- All Implemented Interfaces:
javax.ws.rs.core.Feature
@Provider public class ShiroFeature extends Object implements javax.ws.rs.core.Feature
Shiro JAX-RS feature which includesExceptionMapper
,SubjectPrincipalRequestFilter
, andShiroAnnotationFilterFeature
. Typically a JAX-RSApplication
class will include this Feature class in the classes returned fromApplication.getClasses()
method, for example:public class SampleApplication extends Application {
- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description ShiroFeature()
-
-
-
Constructor Detail
-
ShiroFeature
public ShiroFeature()
-
-
Method Detail
-
configure
public boolean configure(javax.ws.rs.core.FeatureContext context)
- Specified by:
configure
in interfacejavax.ws.rs.core.Feature
-
-