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(com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse) Executes the HTTP request specified byupRequestand writes the response toupResponse.
-
Method Details
-
serviceRequest
void serviceRequest(com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse) throws Exception 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
-