Class RuntimeExceptionFilter

  • All Implemented Interfaces:
    org.forgerock.http.Filter

    public class RuntimeExceptionFilter
    extends Object
    implements org.forgerock.http.Filter
    This filter aims to guarantee the caller that it will always get a Response to process, even if the next returns a promise completed with a RuntimeException, or even if a RuntimeException is thrown.
    • Constructor Detail

      • RuntimeExceptionFilter

        public RuntimeExceptionFilter()
    • Method Detail

      • filter

        public org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,​org.forgerock.util.promise.NeverThrowsException> filter​(org.forgerock.services.context.Context context,
                                                                                                                                                     org.forgerock.http.protocol.Request request,
                                                                                                                                                     org.forgerock.http.Handler next)
        Specified by:
        filter in interface org.forgerock.http.Filter