Package com.helger.phase4.messaging.http
Class HttpMimeMessageEntity
java.lang.Object
org.apache.hc.core5.http.io.entity.AbstractHttpEntity
com.helger.phase4.messaging.http.HttpMimeMessageEntity
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hc.core5.http.EntityDetails,org.apache.hc.core5.http.HttpEntity
public class HttpMimeMessageEntity
extends org.apache.hc.core5.http.io.entity.AbstractHttpEntity
Special HTTP entity that reads and writes to a
MimeMessage.- Author:
- Philip Helger, bayerlma
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpMimeMessageEntity(String sContentType, AS4MimeMessage aMsg) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()static HttpMimeMessageEntitycreate(AS4MimeMessage aMsg) longfinal jakarta.mail.internet.MimeMessagebooleanbooleantoString()voidwriteTo(OutputStream aOS) Methods inherited from class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
getContentEncoding, getContentType, getTrailerNames, getTrailers, isChunked, writeTo
-
Constructor Details
-
HttpMimeMessageEntity
protected HttpMimeMessageEntity(@Nonnull @Nonempty String sContentType, @Nonnull AS4MimeMessage aMsg)
-
-
Method Details
-
close
- Throws:
IOException
-
getMimeMessage
- Returns:
- The mime message passed in the constructor. Never
null.
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
isRepeatablein classorg.apache.hc.core5.http.io.entity.AbstractHttpEntity
-
getContentLength
public long getContentLength() -
isStreaming
public boolean isStreaming() -
getContent
- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
writeToin classorg.apache.hc.core5.http.io.entity.AbstractHttpEntity- Throws:
IOException
-
toString
- Overrides:
toStringin classorg.apache.hc.core5.http.io.entity.AbstractHttpEntity
-
create
-