Interface UPRequestHandler

All Known Subinterfaces:
ServletEngineAdapter

public interface UPRequestHandler
Defines an interface for handling the Prometheus Untrusted Process API.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serviceRequest(com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse)
    Executes the HTTP request specified by upRequest and writes the response to upResponse.
  • Method Details

    • serviceRequest

      void serviceRequest(com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse) throws Exception
      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.

      Throws:
      IOException - If any error related to the request buffer was detected.
      Exception