From 77ab335fb38c7b333f3fcdb784a6dda7f095f509 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sun, 15 Feb 2009 22:17:10 +0000 Subject: [PATCH] Add @since 4.0 tags git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@744772 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/entity/mime/FormBodyPart.java | 2 ++ .../org/apache/http/entity/mime/HttpMultipart.java | 2 ++ .../org/apache/http/entity/mime/HttpMultipartMode.java | 4 ++++ .../main/java/org/apache/http/entity/mime/MIME.java | 4 ++++ .../org/apache/http/entity/mime/MultipartEntity.java | 2 ++ .../http/entity/mime/UnexpectedMimeException.java | 10 +++++++--- .../http/entity/mime/content/AbstractContentBody.java | 4 ++++ .../apache/http/entity/mime/content/ContentBody.java | 4 ++++ .../org/apache/http/entity/mime/content/FileBody.java | 4 ++++ .../http/entity/mime/content/InputStreamBody.java | 4 ++++ .../apache/http/entity/mime/content/StringBody.java | 4 ++++ 11 files changed, 41 insertions(+), 3 deletions(-) diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/FormBodyPart.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/FormBodyPart.java index 099ef3e75..aa449aeb4 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/FormBodyPart.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/FormBodyPart.java @@ -43,6 +43,8 @@ import org.apache.james.mime4j.message.Header; * automatically populates the header with standard fields based * on the content description of the enclosed body. * + * + * @since 4.0 */ public class FormBodyPart extends BodyPart { diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/HttpMultipart.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/HttpMultipart.java index 315690ef4..1f06e7d02 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/HttpMultipart.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/HttpMultipart.java @@ -56,6 +56,8 @@ import org.apache.james.mime4j.util.MessageUtils; * capable of operating either in the strict (fully RFC 822, RFC 2045, * RFC 2046 compliant) or the browser compatible modes. * + * + * @since 4.0 */ public class HttpMultipart extends Multipart { diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/HttpMultipartMode.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/HttpMultipartMode.java index cf39014ef..f34336a3f 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/HttpMultipartMode.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/HttpMultipartMode.java @@ -31,6 +31,10 @@ package org.apache.http.entity.mime; +/** + * + * @since 4.0 + */ public enum HttpMultipartMode { STRICT, diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/MIME.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/MIME.java index 6d7e2e190..0d9080113 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/MIME.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/MIME.java @@ -36,6 +36,10 @@ import java.nio.charset.Charset; import org.apache.james.mime4j.field.Field; import org.apache.james.mime4j.util.CharsetUtil; +/** + * + * @since 4.0 + */ public final class MIME { public static final String CONTENT_TYPE = Field.CONTENT_TYPE; diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/MultipartEntity.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/MultipartEntity.java index b316be2a8..f0e35bb80 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/MultipartEntity.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/MultipartEntity.java @@ -52,6 +52,8 @@ import org.apache.james.mime4j.message.Message; * Multipart/form coded HTTP entity consisting of multiple * body parts. * + * + * @since 4.0 */ public class MultipartEntity implements HttpEntity { diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/UnexpectedMimeException.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/UnexpectedMimeException.java index e1f89e63f..49a6cc7ae 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/UnexpectedMimeException.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/UnexpectedMimeException.java @@ -1,7 +1,7 @@ /* - * $HeadURL:$ - * $Revision:$ - * $Date:$ + * $HeadURL$ + * $Revision$ + * $Date$ * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one @@ -32,6 +32,10 @@ package org.apache.http.entity.mime; import org.apache.james.mime4j.MimeException; +/** + * + * @since 4.0 + */ public class UnexpectedMimeException extends RuntimeException { private static final long serialVersionUID = 1316818299528463579L; diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/content/AbstractContentBody.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/content/AbstractContentBody.java index 0d552e379..899315343 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/content/AbstractContentBody.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/content/AbstractContentBody.java @@ -36,6 +36,10 @@ import java.util.Map; import org.apache.james.mime4j.message.AbstractBody; +/** + * + * @since 4.0 + */ public abstract class AbstractContentBody extends AbstractBody implements ContentBody { private final String mimeType; diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/content/ContentBody.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/content/ContentBody.java index faeea9fbf..54ab5a00d 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/content/ContentBody.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/content/ContentBody.java @@ -34,6 +34,10 @@ package org.apache.http.entity.mime.content; import org.apache.james.mime4j.descriptor.ContentDescriptor; import org.apache.james.mime4j.message.Body; +/** + * + * @since 4.0 + */ public interface ContentBody extends Body, ContentDescriptor { String getFilename(); diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/content/FileBody.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/content/FileBody.java index f8ff5d3ca..3678b43aa 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/content/FileBody.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/content/FileBody.java @@ -40,6 +40,10 @@ import java.io.OutputStream; import org.apache.http.entity.mime.MIME; import org.apache.james.mime4j.message.BinaryBody; +/** + * + * @since 4.0 + */ public class FileBody extends AbstractContentBody implements BinaryBody { private final File file; diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/content/InputStreamBody.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/content/InputStreamBody.java index 4d36416c3..091ded2ce 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/content/InputStreamBody.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/content/InputStreamBody.java @@ -38,6 +38,10 @@ import java.io.OutputStream; import org.apache.http.entity.mime.MIME; import org.apache.james.mime4j.message.BinaryBody; +/** + * + * @since 4.0 + */ public class InputStreamBody extends AbstractContentBody implements BinaryBody { private final InputStream in; diff --git a/module-httpmime/src/main/java/org/apache/http/entity/mime/content/StringBody.java b/module-httpmime/src/main/java/org/apache/http/entity/mime/content/StringBody.java index 32ae77ed8..b1c57a3e8 100644 --- a/module-httpmime/src/main/java/org/apache/http/entity/mime/content/StringBody.java +++ b/module-httpmime/src/main/java/org/apache/http/entity/mime/content/StringBody.java @@ -45,6 +45,10 @@ import java.util.Map; import org.apache.http.entity.mime.MIME; import org.apache.james.mime4j.message.TextBody; +/** + * + * @since 4.0 + */ public class StringBody extends AbstractContentBody implements TextBody { private final byte[] content;