diff --git a/pom.xml b/pom.xml index f83debd..1e9d3a8 100644 --- a/pom.xml +++ b/pom.xml @@ -6,15 +6,32 @@ com.smartystreets.api smartystreets-java-sdk - 1.0 - - - junit - junit - 4.12 - test - - + 1.0.0 + jar + SmartyStreets Java SDK + A library for Java developers to help them easily access the SmartyStreets APIs. + The Github Repository + + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + + SmartyStreets SDK Team + support@smartystreets.com + SmartyStreets + + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/smartystreets/api/GoogleSender.java b/src/main/java/com/smartystreets/api/GoogleSender.java index 6285461..ca44a3c 100644 --- a/src/main/java/com/smartystreets/api/GoogleSender.java +++ b/src/main/java/com/smartystreets/api/GoogleSender.java @@ -11,7 +11,6 @@ import java.util.Map; public class GoogleSender implements Sender { - private final int BUFFER_SIZE = 16384; private int maxTimeOut; private HttpTransport transport; @@ -32,7 +31,7 @@ public GoogleSender(int maxTimeout) { public Response send(Request request) throws SmartyException, IOException { HttpRequest httpRequest = buildHttpRequest(request); - copyHeaders(request, httpRequest); + this.copyHeaders(request, httpRequest); try { return buildResponse(httpRequest.execute()); @@ -60,7 +59,7 @@ private void copyHeaders(Request request, HttpRequest httpRequest) { for (String headerName : headers.keySet()) httpHeaders.set(headerName, headers.get(headerName)); - httpHeaders.setUserAgent("smartystreets sdk:java@" + this.VERSION); + httpHeaders.setUserAgent("smartystreets sdk:java@" + VERSION); } private Response buildResponse(HttpResponse httpResponse) throws IOException { @@ -74,6 +73,7 @@ private byte[] readResponseBody(HttpResponse httpResponse) throws IOException { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); int totalBytesRead; + final int BUFFER_SIZE = 16384; byte[] buffer = new byte[BUFFER_SIZE]; while ((totalBytesRead = inputStream.read(buffer, 0, BUFFER_SIZE)) != -1) {