Package org.glassfish.jersey.jackson
Class JacksonFeature
java.lang.Object
org.glassfish.jersey.jackson.JacksonFeature
- All Implemented Interfaces:
Feature
Feature used to register Jackson JSON providers.
- Author:
- Stepan Kopriva, Michal Gajdos
-
Constructor Summary
ConstructorDescriptionDefault constructor enables registering Jackson's exception mappers -
Method Summary
Modifier and TypeMethodDescriptionboolean
configure
(FeatureContext context) static JacksonFeature
Create JacksonFeature with working Jackson's exception mappersstatic JacksonFeature
Create JacksonFeature without registered Jackson's exception mappers
-
Constructor Details
-
JacksonFeature
public JacksonFeature()Default constructor enables registering Jackson's exception mappers
-
-
Method Details
-
withExceptionMappers
Create JacksonFeature with working Jackson's exception mappers- Returns:
- JacksonFeature with working Jackson's exception mappers
-
withoutExceptionMappers
Create JacksonFeature without registered Jackson's exception mappers- Returns:
- JacksonFeature without registered Jackson's exception mappers
-
configure
-