JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.machinelearning.internal

Class PredictEndpointHandler

  • All Implemented Interfaces:
    IRequestHandler2


    public class PredictEndpointHandler
    extends RequestHandler2 
    Predict calls are sent to a predictor-specific endpoint. This handler extracts the PredictRequest's PredictEndpoint "parameter" and swaps it in as the endpoint to send the request to.
    • Constructor Detail

      • PredictEndpointHandler

        public PredictEndpointHandler()
    • Method Detail

      • afterResponse

        public void afterResponse(Request<?> request,
         Response<?> response)
        Description copied from interface: IRequestHandler2
        Runs any additional processing logic on the specified request (after is has been executed by the client runtime).
        Specified by:
        afterResponse in interface IRequestHandler2
        Overrides:
        afterResponse in class RequestHandler2
        Parameters:
        request - The low level request being processed.
        response - The response generated from the specified request.
      • afterError

        public void afterError(Request<?> request,
         Response<?> response,
         Exception e)
        Description copied from interface: IRequestHandler2
        Runs any additional processing logic on a request after it has failed. This callback is invoked from a catch block. If it generates an exception, the original AmazonClientException will be lost.
        Specified by:
        afterError in interface IRequestHandler2
        Overrides:
        afterError in class RequestHandler2
        Parameters:
        request - The request that generated an error.
        response - the response or null if the failure occurred before the response is made available
        e - The error that resulted from executing the request.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /