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) |
static MimeEntity |
parseEntity(byte[] content) |
static MimeEntity |
parseEntityBody(AS2SessionInputBuffer inbuffer,
String boundary,
org.apache.http.entity.ContentType entityContentType,
String contentTransferEncoding,
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.HttpException
public static void skipToBoundary(AS2SessionInputBuffer inbuffer, String boundary) throws org.apache.http.HttpException
org.apache.http.HttpException
public static MimeEntity parseCompressedEntity(byte[] compressedData, org.bouncycastle.operator.InputExpanderProvider expanderProvider) throws org.apache.http.HttpException
org.apache.http.HttpException
public static MimeEntity parseEnvelopedEntity(byte[] envelopedContent, PrivateKey privateKey) throws org.apache.http.HttpException
org.apache.http.HttpException
public static MimeEntity parseEntity(byte[] content) throws org.apache.http.HttpException
org.apache.http.HttpException
public static byte[] uncompressData(byte[] compressedData, org.bouncycastle.operator.InputExpanderProvider expanderProvider) throws org.apache.http.HttpException
org.apache.http.HttpException
public static byte[] decryptData(byte[] encryptedData, PrivateKey privateKey) throws org.apache.http.HttpException
org.apache.http.HttpException
public 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.ParseException
public static DispositionNotificationMultipartReportEntity parseMultipartReportEntityBody(AS2SessionInputBuffer inbuffer, String boundary, String charsetName, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseException
public static TextPlainEntity parseTextPlainEntityBody(AS2SessionInputBuffer inbuffer, String boundary, String charsetName, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseException
public static AS2MessageDispositionNotificationEntity parseMessageDispositionNotificationEntityBody(AS2SessionInputBuffer inbuffer, String boundary, String charsetName, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseException
public static MimeEntity parseEntityBody(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.entity.ContentType entityContentType, String contentTransferEncoding, org.apache.http.Header[] headers) throws org.apache.http.ParseException
org.apache.http.ParseException
public static ApplicationEDIEntity parseEDIEntityBody(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.entity.ContentType ediMessageContentType, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseException
public static ApplicationPkcs7SignatureEntity parseApplicationPkcs7SignatureEntityBody(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.entity.ContentType contentType, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseException
public static ApplicationPkcs7MimeEnvelopedDataEntity parseApplicationPkcs7MimeEnvelopedDataEntityBody(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.entity.ContentType contentType, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseException
public static ApplicationPkcs7MimeCompressedDataEntity parseApplicationPkcs7MimeCompressedDataEntityBody(AS2SessionInputBuffer inbuffer, String boundary, org.apache.http.entity.ContentType contentType, String contentTransferEncoding) throws org.apache.http.ParseException
org.apache.http.ParseException
public static String parseBodyPartText(AS2SessionInputBuffer inbuffer, String boundary) throws IOException
IOException
public 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
IOException
Apache Camel