Package org.togglz.spring.web
Annotation Type FeaturesAreActive
-
@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented public @interface FeaturesAreActive
Annotate aControlleror a controller method to only activate it when all the features given in thefeatures()attribute are active.If the features are not activated, a response with the status code given by the
errorResponseStatus()attribute is generated (HttpStatus.NOT_FOUND (404) by default).- Author:
- ractive, m-schroeer
-
-
Field Summary
Fields Modifier and Type Fields Description static org.springframework.http.HttpStatusDEFAULT_ERROR_RESPONSE_STATUS
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description org.springframework.http.HttpStatuserrorResponseStatusintresponseStatusDeprecated.use {errorResponseStatus()instead}.
-
-
-
Element Detail
-
features
String[] features
-
-
-
responseStatus
@Deprecated int responseStatus
Deprecated.use {errorResponseStatus()instead}.- Default:
- 404
-
-