Interface CorsProcessor

    • Method Detail

      • processActualRequest

        void processActualRequest​(Translet translet)
                           throws CorsException,
                                  java.io.IOException
        Process a simple or actual CORS request.
        Parameters:
        translet - the Translet instance
        Throws:
        CorsException - if the request is invalid or denied
        java.io.IOException - in case of I/O errors
      • processPreflightRequest

        void processPreflightRequest​(Translet translet)
                              throws CorsException,
                                     java.io.IOException
        Process a preflight CORS request.

        CORS specification: PreflightRequest

        Parameters:
        translet - the Translet instance
        Throws:
        CorsException - if the request is invalid or denied
        java.io.IOException - in case of I/O errors
      • sendError

        void sendError​(Translet translet)
                throws java.io.IOException
        Sends an error response to the client using the specified status.
        Parameters:
        translet - the Translet instance
        Throws:
        java.io.IOException - in case of I/O errors