@@ -2,12 +2,12 @@ require "mustache.js"
2
2
3
3
addslashes = (str ) ->
4
4
(" #{ str} " ).replace (/ [\\ "] / g , ' \\ $&' )
5
-
5
+
6
6
multiLinesToSingleLine = (str ) ->
7
7
(" #{ str} " ).replace (/ [\n "] / g , ' \\ n' )
8
8
9
9
JavaApacheHttpClientFluentAPICodeGenerator = ->
10
-
10
+
11
11
@ url = (request ) ->
12
12
return {
13
13
" fullpath" : request .url
@@ -42,7 +42,7 @@ JavaApacheHttpClientFluentAPICodeGenerator = ->
42
42
}
43
43
44
44
multipart_body = request .multipartBody
45
- if multipart_body
45
+ if multipart_body
46
46
return {
47
47
" has_multipart_body" : true
48
48
" multipart_body" : ({
@@ -82,7 +82,7 @@ JavaApacheHttpClientFluentAPICodeGenerator = ->
82
82
83
83
@ generate = (context ) ->
84
84
request = context .getCurrentRequest ()
85
-
85
+
86
86
view =
87
87
" request" : context .getCurrentRequest ()
88
88
" method" : request .method [0 ].toUpperCase () + request .method [1 .. - 1 ].toLowerCase ()
@@ -97,8 +97,9 @@ JavaApacheHttpClientFluentAPICodeGenerator = ->
97
97
98
98
99
99
JavaApacheHttpClientFluentAPICodeGenerator .identifier =
100
- " com.luckymarmot.PawExtensions.JavaApacheHttpClientFluentAPICodeGenerator" ;
100
+ " com.luckymarmot.PawExtensions.JavaApacheHttpClientFluentAPICodeGenerator"
101
101
JavaApacheHttpClientFluentAPICodeGenerator .title =
102
- " Java (Apache HttpClient via Fluent API)" ;
102
+ " Java (Apache HttpClient via Fluent API)"
103
+ JavaApacheHttpClientFluentAPICodeGenerator .fileExtension = " java"
103
104
104
105
registerCodeGenerator JavaApacheHttpClientFluentAPICodeGenerator
0 commit comments