com.smartystreets.api.URLPrefixSender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartystreets-java-sdk Show documentation
Show all versions of smartystreets-java-sdk Show documentation
A library to help Java developers easily access the SmartyStreets APIs.
package com.smartystreets.api;
import com.smartystreets.api.exceptions.SmartyException;
import java.io.IOException;
public class URLPrefixSender implements Sender{
private String urlPrefix;
private Sender inner;
public URLPrefixSender(String urlPrefix, Sender inner) {
this.urlPrefix = urlPrefix;
this.inner = inner;
}
public Response send(Request request) throws IOException, SmartyException, InterruptedException {
request.setUrlPrefix(this.urlPrefix);
return this.inner.send(request);
}
}