File tree 1 file changed +9
-4
lines changed
google-http-client/src/main/java/com/google/api/client/http
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -53,25 +53,30 @@ public class UrlEncodedContent extends AbstractHttpContent {
53
53
/** Use URI Path encoder flag. False by default (use legacy and deprecated escapeUri) */
54
54
private boolean uriPathEncodingFlag ;
55
55
56
- /** @param data key name/value data */
56
+ /**
57
+ * Initialize the UrlEncodedContent with the legacy and deprecated escapeUri encoder
58
+ * @param data key name/value data
59
+ * */
57
60
public UrlEncodedContent (Object data ) {
58
61
super (UrlEncodedParser .MEDIA_TYPE );
59
62
setData (data );
60
63
this .uriPathEncodingFlag = false ;
61
64
}
62
65
63
66
/**
67
+ * Initialize the UrlEncodedContent with our without the legacy and deprecated escapeUri encoder
64
68
* @param data key name/value data
65
- * @param useUriPathEncoding Escapes the string value so it can be safely included in URI path segments. For details on
66
- * * escaping URIs, see <a href="http://tools.ietf.org/html/rfc3986#section-2.4">RFC 3986 - section
67
- * * 2.4</a>
69
+ * @param useUriPathEncoding Escapes the string value so it can be safely included in URI path segments.
70
+ * For details on escaping URIs, see <a href="http://tools.ietf.org/html/rfc3986#section-2.4">RFC 3986 -
71
+ * section 2.4</a>
68
72
*/
69
73
public UrlEncodedContent (Object data , Boolean useUriPathEncoding ) {
70
74
super (UrlEncodedParser .MEDIA_TYPE );
71
75
setData (data );
72
76
this .uriPathEncodingFlag = useUriPathEncoding ;
73
77
}
74
78
79
+ @ Override
75
80
public void writeTo (OutputStream out ) throws IOException {
76
81
Writer writer = new BufferedWriter (new OutputStreamWriter (out , getCharset ()));
77
82
boolean first = true ;
You can’t perform that action at this time.
0 commit comments