Commit Graph

56 Commits

Author SHA1 Message Date
Sebastian Bazley 56e6a6c853 Avoid name hiding
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1571370 13f79535-47bb-0310-9956-ffa450edef68
2014-02-24 17:56:52 +00:00
Oleg Kalnichevski 9a2c4bc01a HTTPCLIENT-1467: MultipartEntityBuilder#addPart(FormBodyPart) made public
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1570527 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 11:03:24 +00:00
Oleg Kalnichevski 71eb5c853a HTTPCLIENT-1466: FileBodyPart#generateContentType() ignores custom ContentType values
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1570525 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 10:58:02 +00:00
Oleg Kalnichevski e9c8797108 Use String methods and constructors that require Charset instead of String
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1561066 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 17:04:04 +00:00
Oleg Kalnichevski 594f2f4b62 Added missing @Override annotations
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1561063 13f79535-47bb-0310-9956-ffa450edef68
2014-01-24 17:02:05 +00:00
Oleg Kalnichevski 2b31931ecf HTTPCLIENT-1426: use File#getName() if filename is not explicitly given
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1535114 13f79535-47bb-0310-9956-ffa450edef68
2013-10-23 18:37:55 +00:00
Gary D. Gregory 613ef11aaf Use "MIME" instead of "mime" in Javadocs, MIME is an acronym.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1524494 13f79535-47bb-0310-9956-ffa450edef68
2013-09-18 17:13:02 +00:00
Oleg Kalnichevski 995122f963 Made MinimalField constructor public
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1517444 13f79535-47bb-0310-9956-ffa450edef68
2013-08-26 07:27:52 +00:00
Oleg Kalnichevski 95d65666c8 Javadoc updates
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1515777 13f79535-47bb-0310-9956-ffa450edef68
2013-08-20 11:11:13 +00:00
Oleg Kalnichevski e7d9978f26 Moved deprecated classes to a separate scr folder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1507633 13f79535-47bb-0310-9956-ffa450edef68
2013-07-27 13:16:37 +00:00
Oleg Kalnichevski 47f900a03f Fixed maven checkstyle config; fixed format violations
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1495818 13f79535-47bb-0310-9956-ffa450edef68
2013-06-23 14:07:22 +00:00
Oleg Kalnichevski 9056303b5c Post HTTPCLIENT-1372 cleanups; all multipart entity generation logic moved to MultipartEntityBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1495409 13f79535-47bb-0310-9956-ffa450edef68
2013-06-21 12:28:58 +00:00
Karl Wright f596896b32 Add RFC6532 multipart mode, and supporting tests and classes. Finishes HTTPCLIENT-1372.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1495189 13f79535-47bb-0310-9956-ffa450edef68
2013-06-20 21:09:23 +00:00
Oleg Kalnichevski 1dd6b90374 Removed code duplication between deprecated HttpMultipart and AbstractMultipartForm; made AbstractMultipartForm and its super classes package private
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1495134 13f79535-47bb-0310-9956-ffa450edef68
2013-06-20 19:06:33 +00:00
Karl Wright 74213fa419 Refactoring, in preparation for functional pieces for HTTPCLIENT-1372.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1494902 13f79535-47bb-0310-9956-ffa450edef68
2013-06-20 09:59:33 +00:00
Oleg Kalnichevski b1c387e986 Style-check to enforce unused import and final variable checks
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1491511 13f79535-47bb-0310-9956-ffa450edef68
2013-06-10 15:52:49 +00:00
Gary D. Gregory 3ebbcab3b4 Add final modifier to local variables.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433815 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 03:27:44 +00:00
Gary D. Gregory 276a9c4597 Add final modifier to method parameters.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433569 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 18:29:58 +00:00
Oleg Kalnichevski 19c10ca488 Fixed style check violations (tabs introduced by a previous commit)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432730 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 20:41:07 +00:00
Gary D. Gregory 323adda52e Add missing '@Override' annotations.
Add missing '@Deprecated' annotations.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432551 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 04:46:54 +00:00
Oleg Kalnichevski d72e9b3ae7 Use Asserts to verify object state; use Args to verify method arguments
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423516 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 16:22:58 +00:00
Gary D. Gregory b6457c4d27 [HTTPCLIENT-1260] Javadoc incorrectly states StringBody(String)'s encoding uses the system default. Contributed by Tim <tdhutt at gmail.com> and Gary Gregory <ggregory at apache.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1409922 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 18:46:03 +00:00
Gary D. Gregory c017b6ba7b Javadoc nit.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1409915 13f79535-47bb-0310-9956-ffa450edef68
2012-11-15 18:36:16 +00:00
Oleg Kalnichevski 84d4b9e2ac Refactored HttpMime ContentBody classes to use ContentType at construction time; added MultipartEntityBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1398094 13f79535-47bb-0310-9956-ffa450edef68
2012-10-14 14:55:11 +00:00
Oleg Kalnichevski 7a207ae475 Removed code deprecated in release 4.0
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1337893 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 14:11:39 +00:00
Oleg Kalnichevski a8d2e5e5fa Added release version to deprecation annotations; removed references to deprecated methods / classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1335088 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 16:06:11 +00:00
Oleg Kalnichevski e5ea32b76d TABS -> SPACES
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1172301 13f79535-47bb-0310-9956-ffa450edef68
2011-09-18 16:20:20 +00:00
Sebastian Bazley 7bd182d481 Make mode a final field of HttpMultipart
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1051681 13f79535-47bb-0310-9956-ffa450edef68
2010-12-21 22:25:45 +00:00
Sebastian Bazley 4c24320359 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1051680 13f79535-47bb-0310-9956-ffa450edef68
2010-12-21 22:23:59 +00:00
Sebastian Bazley 4f5d4b0d7e Remove unnecessary null checks for mimeType and TransferEncoding
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1051664 13f79535-47bb-0310-9956-ffa450edef68
2010-12-21 21:43:56 +00:00
Sebastian Bazley c1e0539a93 Fix Javadoc for current behaviour
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1051355 13f79535-47bb-0310-9956-ffa450edef68
2010-12-21 01:50:35 +00:00
Sebastian Bazley d012c1041c Might help if the import was removed too ...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1050267 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 02:49:15 +00:00
Sebastian Bazley 820817d0b8 Annotations can currently only be used in httpclient module
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1050264 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 02:12:18 +00:00
Sebastian Bazley 4eec65b378 Document thread safety
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1050254 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 00:28:00 +00:00
Sebastian Bazley 36607de8cc Might as well be final, as it's not changed
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1050253 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 00:27:36 +00:00
Sebastian Bazley 3a022b2cf9 HTTPCLIENT-1036 StringBody has incorrect default for characterset.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1050239 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 23:59:08 +00:00
Sebastian Bazley 318d74af0c Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1049767 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 01:47:43 +00:00
Oleg Kalnichevski 354171b344 HTTPCLIENT-1014: ContentBody backed by a byte array
Contributed by Axel Fontaine <business at axelfontaine.eu>


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1023336 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16 17:25:54 +00:00
Oleg Kalnichevski 05deb28605 HTTPCLIENT-960: HttpMultipart doesn't generate Content-Type header for binary parts in BROWSER_COMPATIBLE mode
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@996639 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13 18:55:56 +00:00
Sebastian Bazley b1fcb10723 SVN eol-style:native
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943758 13f79535-47bb-0310-9956-ffa450edef68
2010-05-13 00:22:19 +00:00
Sebastian Bazley 416085813e Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@939854 13f79535-47bb-0310-9956-ffa450edef68
2010-04-30 22:33:56 +00:00
Oleg Kalnichevski 4defb0689f TABS -> SPACES
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@937479 13f79535-47bb-0310-9956-ffa450edef68
2010-04-23 19:19:23 +00:00
Oleg Kalnichevski ad7d78d0da Removed references to mime4j from javadocs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@934353 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 10:14:42 +00:00
Oleg Kalnichevski 379e2a6bfb Dropped dependency on Mime4j
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@934110 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 18:45:17 +00:00
Oleg Kalnichevski 659a47be1d HTTPCLIENT-904: convenience #create methods
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@932022 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 17:32:48 +00:00
Oleg Kalnichevski d2b10048b9 HTTPCLIENT-874: Override method MultipartEntity.addPart so that applications may use FormBodyPart
Contributed by Gerald Turner <gturner at unzane.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@811556 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 21:22:17 +00:00
Oleg Kalnichevski fdfded17c2 HTTPCLIENT-871: Add FileBody constructor with explicit filename
Contributed by Gerald Turner <gturner at unzane.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@811126 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 21:15:15 +00:00
Oleg Kalnichevski 33de23c102 HTTPCLIENT-866: removed dependency on jcip-annotations; replaced jcip annotations with custom ones based on jcip but with SOURCE retention policy; added attribution clauses to NOTICE.txt and LICENSE.txt
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@807756 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 18:37:59 +00:00
Oleg Kalnichevski 842a750509 Removed HeadURL, Revision and Date keywords from all source files
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@793668 13f79535-47bb-0310-9956-ffa450edef68
2009-07-13 19:16:48 +00:00
Oleg Kalnichevski 4569c7d8ea Javadoc updates
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@788497 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 20:04:53 +00:00