Package com.google.apphosting.runtime
Interface UPRequestHandler
- All Known Subinterfaces:
ServletEngineAdapter
public interface UPRequestHandler
Defines an interface for handling the Prometheus Untrusted Process API.
-
Method Summary
Modifier and TypeMethodDescriptionvoidserviceRequest(RuntimePb.UPRequest upRequest, MutableUpResponse upResponse) Executes the HTTP request specified byupRequestand writes the response toupResponse.
-
Method Details
-
serviceRequest
Executes the HTTP request specified byupRequestand writes the response toupResponse.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
-