File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
src/com/loopj/android/http Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 2
2
<property file =" local.properties" />
3
3
<property file =" default.properties" />
4
4
5
- <!-- Project properties -->
6
- <property name =" version.num" value =" 1.2.1" />
7
- <property name =" project" value =" android-async-http" />
5
+ <!-- Package properties -->
6
+ <property name =" package.name" value =" android-async-http" />
7
+ <property name =" package.version" value =" 1.2.1" />
8
+ <property name =" package.packagename" value =" com.loopj.android.http" />
8
9
9
10
<!-- Standard jar stuff -->
10
- <property name =" jarfile" value =" ${ project } -${ version.num } .jar" />
11
+ <property name =" jarfile" value =" ${ package.name } -${ package.version } .jar" />
11
12
<property name =" lib.dir" value =" ${ sdk.dir } platforms/${ target } " />
12
13
<property name =" build.dir" value =" ./build" />
13
14
<property name =" classes.dir" value =" ${ build.dir } /classes" />
18
19
<fileset dir =" ${ lib.dir } " includes =" **/*.jar" />
19
20
</path >
20
21
22
+ <!-- Build javadoc -->
23
+ <target name =" doc" >
24
+ <javadoc
25
+ classpathref =" classpath"
26
+ sourcepath =" gen:src"
27
+ destdir =" doc"
28
+ packagenames =" ${ package.packagename } "
29
+ linkoffline =" http://d.android.com/reference ${ sdk.dir } docs/reference"
30
+ stylesheetfile =" ${ sdk.dir } docs/assets/android-developer-docs.css"
31
+ additionalparam =" -author -version"
32
+ />
33
+ </target >
34
+
21
35
<!-- Compile java files into classes -->
22
36
<target name =" compile" >
23
37
<mkdir dir =" ${ build.dir } " />
Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ public class AsyncHttpClient {
81
81
private ThreadPoolExecutor threadPool ;
82
82
private Map <Context , List <WeakReference <Future >>> requestMap ;
83
83
84
+ /**
85
+ * Creates a new AsyncHttpClient which will identify itself with the user agent userAgent
86
+ * @param userAgent The identifier to use in the User-Agent header in requests
87
+ */
84
88
public AsyncHttpClient (String userAgent ) {
85
89
BasicHttpParams httpParams = new BasicHttpParams ();
86
90
You can’t perform that action at this time.
0 commit comments