All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.apphosting.runtime.UPRequestHandler Maven / Gradle / Ivy

There is a newer version: 2.0.31
Show newest version
/*
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.apphosting.runtime;

import com.google.apphosting.base.protos.RuntimePb.UPRequest;
import java.io.IOException;

/** Defines an interface for handling the Prometheus Untrusted Process API. */
public interface UPRequestHandler {
  /**
   * Executes the HTTP request specified by {@code upRequest} and writes the response to {@code
   * upResponse}.
   *
   * 

Finds, and if necessary, instantiates and initializes the appropriate servlet, invokes it, * and copies the response into {@code upResponse}. * * @throws IOException If any error related to the request buffer was detected. */ void serviceRequest(UPRequest upRequest, MutableUpResponse upResponse) throws Exception; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy