Example usage for com.amazonaws.services.s3.internal ServiceUtils convertRequestToUrl

List of usage examples for com.amazonaws.services.s3.internal ServiceUtils convertRequestToUrl

Introduction

In this page you can find the example usage for com.amazonaws.services.s3.internal ServiceUtils convertRequestToUrl.

Prototype

@Deprecated
public static URL convertRequestToUrl(Request<?> request) 

Source Link

Document

Converts the specified request object into a URL, containing all the specified parameters, the specified request endpoint, etc.

Usage

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

License:Open Source License

@Override
public URL getCreateSpeechUrl(CreateSpeechRequest createSpeechRequest) throws UnsupportedEncodingException {
    createSpeechRequest.setMethodType(MethodType.GET);
    Request<CreateSpeechRequest> request = CreateSpeechRequestMarshallerFactory
            .getMarshaller(createSpeechRequest.getMethodType()).marshall(createSpeechRequest);
    return ServiceUtils.convertRequestToUrl(prepareRequestForGetUrl(request));
}

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

License:Open Source License

@Override
public URL getListVoicesUrl(ListVoicesRequest listVoicesRequest) throws UnsupportedEncodingException {
    listVoicesRequest.setMethodType(MethodType.GET);
    Request<ListVoicesRequest> request = ListVoicesRequestMarshallerFactory
            .getMarshaller(listVoicesRequest.getMethodType()).marshall(listVoicesRequest);
    return ServiceUtils.convertRequestToUrl(prepareRequestForGetUrl(request));
}