Class RestStatusService

  • Direct Known Subclasses:
    JSONRestStatusService

    public abstract class RestStatusService
    extends org.restlet.service.StatusService
    Service to handle error statuses. If an exception is thrown then the status is pulled from the response and the matching Json Resource exception is created and sent back to the client. This keeps the authenticate REST endpoint in line with the CREST resource exceptions.
    Since:
    12.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract org.restlet.representation.Representation representMap​(Map<String,​Object> map)  
      org.restlet.representation.Representation toRepresentation​(org.restlet.data.Status status, org.restlet.Request request, org.restlet.Response response)
      • 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
      • Methods inherited from class org.restlet.service.Service

        createOutboundFilter, getContext, isEnabled, isStarted, isStopped, setContext, setEnabled, start, stop
    • Constructor Detail

      • RestStatusService

        public RestStatusService()
    • Method Detail

      • toRepresentation

        public org.restlet.representation.Representation toRepresentation​(org.restlet.data.Status status,
                                                                          org.restlet.Request request,
                                                                          org.restlet.Response response)
        Overrides:
        toRepresentation in class org.restlet.service.StatusService
      • representMap

        protected abstract org.restlet.representation.Representation representMap​(Map<String,​Object> map)