Class JettyServletEngineAdapter

    • Constructor Detail

      • JettyServletEngineAdapter

        public JettyServletEngineAdapter()
    • Method Detail

      • start

        public void start​(String serverInfo,
                          ServletEngineAdapter.Config runtimeOptions)
        Description copied from interface: ServletEngineAdapter
        Performs whatever setup is necessary for this servlet container. This method waits for setup to complete before returning.
        Specified by:
        start in interface ServletEngineAdapter
        Parameters:
        serverInfo - The string that should be returned by ServletContext.getServerInfo().
        runtimeOptions - Extra options, currently used for the Jetty HTTP adapter only.
      • stop

        public void stop()
        Description copied from interface: ServletEngineAdapter
        Perform any shutdown procedures necessary for this servlet container. This method should return once the shutdown has been completed.
        Specified by:
        stop in interface ServletEngineAdapter
      • serviceRequest

        public void serviceRequest​(com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest,
                                   MutableUpResponse upResponse)
                            throws javax.servlet.ServletException,
                                   IOException
        Description copied from interface: UPRequestHandler
        Executes the HTTP request specified by upRequest and writes the response to upResponse.

        Finds, and if necessary, instantiates and initializes the appropriate servlet, invokes it, and copies the response into upResponse.

        Specified by:
        serviceRequest in interface UPRequestHandler
        Throws:
        IOException - If any error related to the request buffer was detected.
        javax.servlet.ServletException