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

com.amazonaws.services.apigateway.internal.AcceptJsonRequestHandler Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
package com.amazonaws.services.apigateway.internal;

import com.amazonaws.Request;
import com.amazonaws.Response;
import com.amazonaws.handlers.RequestHandler2;

public final class AcceptJsonRequestHandler extends RequestHandler2 {

    @Override
    public void beforeRequest(Request request) {
        request.addHeader("Accept", "application/json");
    }

    @Override
    public void afterResponse(Request request, Response response) {
        // No-op.
    }

    @Override
    public void afterError(
            Request request,
            Response response,
            Exception e) {

        // No-op.
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy