Example usage for com.amazonaws.handlers HandlerChainFactory newRequestHandlerChain

List of usage examples for com.amazonaws.handlers HandlerChainFactory newRequestHandlerChain

Introduction

In this page you can find the example usage for com.amazonaws.handlers HandlerChainFactory newRequestHandlerChain.

Prototype

public List<RequestHandler2> newRequestHandlerChain(String resource) 

Source Link

Document

For backward compatibility, constructs a new request handler chain adapted to RequestHandler2 by analyzing the specified classpath resource.

Usage

From source file:com.ivona.services.tts.IvonaSpeechCloudClient.java

License:Open Source License

private void init() {
    exceptionUnmarshallers = new ArrayList<JsonErrorUnmarshaller>();
    exceptionUnmarshallers.add(new JsonErrorUnmarshaller());

    signer = new AWS4Signer();
    signer.setServiceName(SERVICE_NAME);

    setServiceNameIntern(SERVICE_NAME);/* w w w.j ava2s.c o m*/

    HandlerChainFactory chainFactory = new HandlerChainFactory();
    requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com.ivona.services/tts/request.handlers"));
    requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com.ivona.services/tts/request.handler2s"));
}