Class RangeFilter

  • All Implemented Interfaces:
    Uniform

    public class RangeFilter
    extends Filter
    Filter that is in charge to check the responses to requests for partial content.
    • Constructor Detail

      • RangeFilter

        public RangeFilter​(Context context)
        Constructor.
        Parameters:
        context - The parent context.
    • Method Detail

      • afterHandle

        protected void afterHandle​(Request request,
                                   Response response)
        Description copied from class: Filter
        Allows filtering after processing by the next Restlet. Does nothing by default.
        Overrides:
        afterHandle in class Filter
        Parameters:
        request - The request to handle.
        response - The response to update.
      • getRangeService

        public RangeService getRangeService()
        Returns the Range service of the parent application.
        Returns:
        The Range service of the parent application.