const mixinafBedSheet::HttpStatusProcessors
afBedSheet::HttpStatusProcessors : afBedSheet::ResponseProcessor
(Service) - Contribute your HttpStatusProcessor implementations to this.
@Contribute { serviceType=HttpStatusProcessors# }
static Void contributeHttpStatusProcessors(MappedConfig conf) {
conf[404] = conf.autobuild(My404PageHandler#)
}
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 afIocConfig::ApplicationDefaults.
@Contribute { serviceType=ApplicationDefaults# }
static Void configureApplicationDefaults(MappedConfig conf) {
conf[BedSheetConfigIds.httpStatusDefaultPage] = MyStatusPage()
}
@see BedSheetConfigIds.defaultHttpStatusProcessor
@uses a MappedConfig of Int:HttpStatusProcessor