Home | History | Annotate | Download | only in multipart

Lines Matching refs:parts

57  * a series of parts. Each part is expected to contain a content-disposition 
71 * Part[] parts = {
76 * new MultipartRequestEntity(parts, filePost.getParams())
117 /** The MIME parts as set by the constructor */
118 protected Part[] parts;
127 * Creates a new multipart entity containing the given parts.
128 * @param parts The parts to include.
131 public MultipartEntity(Part[] parts, HttpParams params) {
132 if (parts == null) {
133 throw new IllegalArgumentException("parts cannot be null");
138 this.parts = parts;
142 public MultipartEntity(Part[] parts) {
144 if (parts == null) {
145 throw new IllegalArgumentException("parts cannot be null");
147 this.parts = parts;
176 * Returns <code>true</code> if all parts are repeatable, <code>false</code> otherwise.
179 for (int i = 0; i < parts.length; i++) {
180 if (!parts[i].isRepeatable()) {
190 Part.sendParts(out, parts, getMultipartBoundary());
208 return Part.getLengthOfParts(parts, getMultipartBoundary());
210 log.error("An exception occurred while getting the length of the parts", e);
222 Part.sendParts(baos, this.parts, this.multipartBoundary);