public final class EntityParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decryptData(byte[] encryptedData,
PrivateKey privateKey) |
static boolean |
isBoundaryCloseDelimiter(org.apache.http.util.CharArrayBuffer buffer,
org.apache.http.message.ParserCursor cursor,
String boundary) |
static boolean |
isBoundaryDelimiter(org.apache.http.util.CharArrayBuffer buffer,
org.apache.http.message.ParserCursor cursor,
String boundary) |
static ApplicationPkcs7MimeCompressedDataEntity |
parseApplicationPkcs7MimeCompressedDataEntityBody(AS2SessionInputBuffer inbuffer,
String boundary,
org.apache.http.entity.ContentType contentType,
String contentTransferEncoding) |
static ApplicationPkcs7MimeEnvelopedDataEntity |
parseApplicationPkcs7MimeEnvelopedDataEntityBody(AS2SessionInputBuffer inbuffer,
String boundary,
org.apache.http.entity.ContentType contentType,
String contentTransferEncoding) |
static ApplicationPkcs7SignatureEntity |
parseApplicationPkcs7SignatureEntityBody(AS2SessionInputBuffer inbuffer,
String boundary,
org.apache.http.entity.ContentType contentType,
String contentTransferEncoding) |
static void |
parseAS2MessageEntity(org.apache.http.HttpMessage message)
Parses message's entity and replaces it with mime entity.
|
static List<org.apache.http.util.CharArrayBuffer> |
parseBodyPartFields(AS2SessionInputBuffer inbuffer,
String boundary,
org.apache.http.message.LineParser parser,
List<org.apache.http.util.CharArrayBuffer> fields) |
static String |
parseBodyPartText(AS2SessionInputBuffer inbuffer,
String boundary) |
static MimeEntity |
parseCompressedEntity(byte[] compressedData,
org.bouncycastle.operator.InputExpanderProvider expanderProvider) |
static ApplicationEDIEntity |
parseEDIEntityBody(AS2SessionInputBuffer inbuffer,
String boundary,
org.apache.http.entity.ContentType ediMessageContentType,
String contentTransferEncoding,
String filename) |
static MimeEntity |
parseEntity(byte[] content) |
static MimeEntity |
parseEntityBody(AS2SessionInputBuffer inbuffer,
String boundary,
org.apache.http.entity.ContentType entityContentType,
String contentTransferEncoding,
String filename,
org.apache.http.Header[] headers) |
static MimeEntity |
parseEnvelopedEntity(byte[] envelopedContent,
PrivateKey privateKey) |
static AS2MessageDispositionNotificationEntity |
parseMessageDispositionNotificationEntityBody(AS2SessionInputBuffer inbuffer,
String boundary,
String charsetName,
String contentTransferEncoding) |
static DispositionNotificationMultipartReportEntity |
parseMultipartReportEntityBody(AS2SessionInputBuffer inbuffer,
String boundary,
String charsetName,
String contentTransferEncoding) |
static MultipartSignedEntity |
parseMultipartSignedEntityBody(AS2SessionInputBuffer inbuffer,
String boundary,
String micalg,
String charsetName,
String contentTransferEncoding) |
static TextPlainEntity |
parseTextPlainEntityBody(AS2SessionInputBuffer inbuffer,
String boundary,
String charsetName,
String contentTransferEncoding) |
static void |
skipPreambleAndStartBoundary(AS2SessionInputBuffer inbuffer,
String boundary) |
static void |
skipToBoundary(AS2SessionInputBuffer inbuffer,
String boundary) |
static byte[] |
uncompressData(byte[] compressedData,
org.bouncycastle.operator.InputExpanderProvider expanderProvider) |
public static boolean isBoundaryCloseDelimiter(org.apache.http.util.CharArrayBuffer buffer,
org.apache.http.message.ParserCursor cursor,
String boundary)
public static boolean isBoundaryDelimiter(org.apache.http.util.CharArrayBuffer buffer,
org.apache.http.message.ParserCursor cursor,
String boundary)
public static void skipPreambleAndStartBoundary(AS2SessionInputBuffer inbuffer, String boundary) throws org.apache.http.HttpException
org.apache.http.HttpExceptionpublic static void skipToBoundary(AS2SessionInputBuffer inbuffer, String boundary) throws org.apache.http.HttpException
org.apache.http.HttpExceptionpublic static MimeEntity parseCompressedEntity(byte[] compressedData, org.bouncycastle.operator.InputExpanderProvider expanderProvider) throws org.apache.http.HttpException
org.apache.http.HttpExceptionpublic static MimeEntity parseEnvelopedEntity(byte[] envelopedContent, PrivateKey privateKey) throws org.apache.http.HttpException
org.apache.http.HttpExceptionpublic static MimeEntity parseEntity(byte[] content) throws org.apache.http.HttpException
org.apache.http.HttpExceptionpublic static byte[] uncompressData(byte[] compressedData,
org.bouncycastle.operator.InputExpanderProvider expanderProvider)
throws org.apache.http.HttpException
org.apache.http.HttpExceptionpublic static byte[] decryptData(byte[] encryptedData,
PrivateKey privateKey)
throws org.apache.http.HttpException
org.apache.http.HttpExceptionpublic static void parseAS2MessageEntity(org.apache.http.HttpMessage message)
throws org.apache.http.HttpException
message - - message whose entity is parsed.org.apache.http.HttpException - when things go wrong.public static MultipartSignedEntity parseMultipartSignedEntityBody(AS2SessionInputBuffer inbuffer, String boundary, String micalg, String charsetName, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseExceptionpublic static DispositionNotificationMultipartReportEntity parseMultipartReportEntityBody(AS2SessionInputBuffer inbuffer, String boundary, String charsetName, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseExceptionpublic static TextPlainEntity parseTextPlainEntityBody(AS2SessionInputBuffer inbuffer, String boundary, String charsetName, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseExceptionpublic static AS2MessageDispositionNotificationEntity parseMessageDispositionNotificationEntityBody(AS2SessionInputBuffer inbuffer, String boundary, String charsetName, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseExceptionpublic static MimeEntity parseEntityBody(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.entity.ContentType entityContentType, String contentTransferEncoding, String filename, org.apache.http.Header[] headers) throws org.apache.http.ParseException
org.apache.http.ParseExceptionpublic static ApplicationEDIEntity parseEDIEntityBody(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.entity.ContentType ediMessageContentType, String contentTransferEncoding, String filename) throws org.apache.http.ParseException
org.apache.http.ParseExceptionpublic static ApplicationPkcs7SignatureEntity parseApplicationPkcs7SignatureEntityBody(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.entity.ContentType contentType, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseExceptionpublic static ApplicationPkcs7MimeEnvelopedDataEntity parseApplicationPkcs7MimeEnvelopedDataEntityBody(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.entity.ContentType contentType, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseExceptionpublic static ApplicationPkcs7MimeCompressedDataEntity parseApplicationPkcs7MimeCompressedDataEntityBody(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.entity.ContentType contentType, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseExceptionpublic static String parseBodyPartText(AS2SessionInputBuffer inbuffer, String boundary) throws IOException
IOExceptionpublic static List<org.apache.http.util.CharArrayBuffer> parseBodyPartFields(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.message.LineParser parser, List<org.apache.http.util.CharArrayBuffer> fields) throws IOException
IOExceptionApache Camel