changed method name for javabean convention

This commit is contained in:
Pablo Fernandez committed 2011-09-25 20:12:53 -03:00
1 parent 852368e0a7
commit 7510111d28
2 files changed
+5 -5

No files matched your search

+1
View File
@@ -69,3 +69,4 @@
* FEATURE: Added default Content-Type header
* FEATURE: SoundCloud Api
* FEATURE: Sapo Api
* FEATURE: Plurk Mobile Api
+4 -5
View File
@@ -27,7 +27,7 @@ public class Response
connection.connect();
code = connection.getResponseCode();
headers = parseHeaders(connection);
stream = wasSuccessful() ? connection.getInputStream() : connection.getErrorStream();
stream = isSuccessful() ? connection.getInputStream() : connection.getErrorStream();
}
catch (UnknownHostException e)
{
@@ -52,7 +52,7 @@ public class Response
return headers;
}
private boolean wasSuccessful()
public boolean isSuccessful()
{
return getCode() >= 200 && getCode() < 400;
}
@@ -101,10 +101,9 @@ public class Response
/**
* Obtains a single HTTP Header value, or null if undefined
*
* @param header
* name
* @param name the header name.
*
* @return header value or null
* @return header value or null.
*/
public String getHeader(String name)
{