Index: /home/oglueck/projects/httpclient-3/src/java/org/apache/commons/httpclient/methods/multipart/MultipartRequestEntity.java =================================================================== --- /home/oglueck/projects/httpclient-3/src/java/org/apache/commons/httpclient/methods/multipart/MultipartRequestEntity.java (revision 280322) +++ /home/oglueck/projects/httpclient-3/src/java/org/apache/commons/httpclient/methods/multipart/MultipartRequestEntity.java (working copy) @@ -99,7 +99,8 @@ return bytes; } - private Part[] parts; + /** The MIME parts as set by the constructor */ + protected Part[] parts; private byte[] multipartBoundary; @@ -121,7 +122,16 @@ this.params = params; } - private byte[] getMultipartBoundary() { + /** + * Returns the MIME boundary string that is used to demarcate boundaries of + * this part. The first call to this method will implicitly create a new + * boundary string. To create a boundary string first the + * HttpMethodParams.MULTIPART_BOUNDARY parameter is considered. Otherwise + * a random one is generated. + * + * @return The boundary string of this entity in ASCII encoding. + */ + protected byte[] getMultipartBoundary() { if (multipartBoundary == null) { String temp = (String) params.getParameter(HttpMethodParams.MULTIPART_BOUNDARY); if (temp != null) { Index: /home/oglueck/projects/httpclient-3/src/java/org/apache/commons/httpclient/methods/multipart/Part.java =================================================================== --- /home/oglueck/projects/httpclient-3/src/java/org/apache/commons/httpclient/methods/multipart/Part.java (revision 280322) +++ /home/oglueck/projects/httpclient-3/src/java/org/apache/commons/httpclient/methods/multipart/Part.java (working copy) @@ -122,7 +122,7 @@ /** * Return the boundary string. * @return the boundary string - * @deprecated + * @deprecated uses a constant string. Rather use {@link #getPartBoundary} */ public static String getBoundary() { return BOUNDARY;