Interface CGIStatusCodeHandler


public interface CGIStatusCodeHandler
Interface for handling return codes of processes executed by the CGIExecutor.
Since:
1.15
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleStatusCode(jakarta.servlet.http.HttpServletRequest request, int statusCode)
    Handles the return code of the process executed by CGIExecutor.
    void
    handleStatusCode(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, OutputStream ouputStream, int statusCode)
    Handles the return code of the process executed by CGIExecutor.
  • Method Details

    • handleStatusCode

      void handleStatusCode(jakarta.servlet.http.HttpServletRequest request, int statusCode)
      Handles the return code of the process executed by CGIExecutor. <b>Note:</b> This method is called when the process has already written to the OutputStream.
      Parameters:
      request - the http request
      statusCode - process return code
    • handleStatusCode

      void handleStatusCode(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, OutputStream ouputStream, int statusCode) throws IOException
      Handles the return code of the process executed by CGIExecutor. <b>Note:</b> This method is only called when the process has not written to the OutputStream. Do not call ServletResponse.getWriter(), because there was already a call to ServletResponse.getOutputStream().
      Parameters:
      request - the http request
      response - the http response
      ouputStream - the servlet output stream
      statusCode - process return code
      Throws:
      IOException