[jfireeagle] r396 committed - added method: getHttpClient()

1 view
Skip to first unread message

codesite...@google.com

unread,
Nov 28, 2010, 2:01:54 AM11/28/10
to jfireeagl...@googlegroups.com
Revision: 396
Author: se...@seansullivan.com
Date: Sat Nov 27 23:00:37 2010
Log: added method: getHttpClient()
http://code.google.com/p/jfireeagle/source/detail?r=396

Modified:
/trunk/jfireeagle/src/main/jfireeagle/FireEagleClient.java

=======================================
--- /trunk/jfireeagle/src/main/jfireeagle/FireEagleClient.java Tue Jan 13
05:34:23 2009
+++ /trunk/jfireeagle/src/main/jfireeagle/FireEagleClient.java Sat Nov 27
23:00:37 2010
@@ -570,7 +570,7 @@
{
try
{
- this.httpClient.getConnectionManager().shutdown();
+ this.getHttpClient().getConnectionManager().shutdown();
}
catch (Exception ignore)
{
@@ -582,17 +582,17 @@

public void setUserAgent(String ua)
{
- this.httpClient.getParams().setParameter(AllClientPNames.USER_AGENT, ua);
+ getHttpClient().getParams().setParameter(AllClientPNames.USER_AGENT, ua);
}

public void setConnectionTimeout(int milliseconds)
{
-
httpClient.getParams().setIntParameter(AllClientPNames.CONNECTION_TIMEOUT,
milliseconds);
+
getHttpClient().getParams().setIntParameter(AllClientPNames.CONNECTION_TIMEOUT,
milliseconds);
}

public void setSocketTimeout(int milliseconds)
{
- httpClient.getParams().setIntParameter(AllClientPNames.SO_TIMEOUT,
milliseconds);
+ getHttpClient().getParams().setIntParameter(AllClientPNames.SO_TIMEOUT,
milliseconds);
}

public void setCompressionEnabled(boolean b)
@@ -614,5 +614,10 @@
{
this.requestToken = t;
}
+
+ protected HttpClient getHttpClient()
+ {
+ return this.httpClient;
+ }

}

Reply all
Reply to author
Forward
0 new messages