Class JSONRestStatusService
- java.lang.Object
-
- org.restlet.service.Service
-
- org.restlet.service.StatusService
-
- org.forgerock.openam.rest.service.RestStatusService
-
- org.forgerock.openam.rest.service.JSONRestStatusService
-
public class JSONRestStatusService extends RestStatusService
An implementation ofRestStatusServicethat returns aJacksonRepresentation.
-
-
Constructor Summary
Constructors Constructor Description JSONRestStatusService()Default constructor - will initialise Guice objects from theInjectorHolder.JSONRestStatusService(JacksonRepresentationFactory factory)Dependency constructor used for testing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.restlet.representation.RepresentationrepresentMap(Map<String,Object> map)-
Methods inherited from class org.forgerock.openam.rest.service.RestStatusService
toRepresentation
-
Methods inherited from class org.restlet.service.StatusService
createInboundFilter, getConnegService, getContactEmail, getConverterService, getHomeRef, getMetadataService, getRepresentation, getStatus, getStatus, isOverwriting, setConnegService, setContactEmail, setConverterService, setHomeRef, setMetadataService, setOverwriting, toRepresentation, toStatus, toStatus
-
-
-
-
Constructor Detail
-
JSONRestStatusService
public JSONRestStatusService()
Default constructor - will initialise Guice objects from theInjectorHolder.
-
JSONRestStatusService
@Inject public JSONRestStatusService(JacksonRepresentationFactory factory)
Dependency constructor used for testing. Restlet Framework will call the default constructorJSONRestStatusService().- Parameters:
factory- non null.
-
-
Method Detail
-
representMap
protected org.restlet.representation.Representation representMap(Map<String,Object> map)
- Specified by:
representMapin classRestStatusService
-
-