const mixinafBedSheet::HttpStatusProcessors

afBedSheet::HttpStatusProcessors : afBedSheet::ResponseProcessor

Holds a collection of HttpStatusProcessors.

@Contribute { serviceType=HttpStatusProcessors# }
static Void contributeHttpStatusProcessors(MappedConfig conf) {
  conf[404] = conf.autobuild(Page404#)
}

If a processor for the given status code can not be found, the default page (processor) is used. The default page can be set in ApplicationDefaults.

@Contribute { serviceType=ApplicationDefaults# } 
static Void configureApplicationDefaults(MappedConfig conf) {
  conf[ConfigIds.httpStatusDefaultPage] = MyStatusPage()
}

@see ConfigIds.httpStatusDefaultPage

@uses a MappedConfig of Int:HttpStatusProcessor

process

Source

abstract override Obj process(Obj response)

Returns the result of processing the given HttpStatus as per the contributed processors.