Class HttpMessageUtils
- java.lang.Object
-
- org.apache.camel.component.as2.api.util.HttpMessageUtils
-
public final class HttpMessageUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApplicationEDIEntity
extractEdiPayload(org.apache.http.HttpMessage message, PrivateKey privateKey)
static ApplicationEDIEntity
extractEdiPayloadFromCompressedEntity(ApplicationPkcs7MimeCompressedDataEntity compressedDataEntity)
static <T> T
getEntity(org.apache.http.HttpMessage message, Class<T> type)
static String
getHeaderValue(org.apache.http.HttpMessage message, String headerName)
static String
getParameterValue(org.apache.http.HttpMessage message, String headerName, String parameterName)
static String
parseBodyPartContent(org.apache.http.io.SessionInputBuffer inBuffer, String boundary)
static void
setHeaderValue(org.apache.http.HttpMessage message, String headerName, String headerValue)
-
-
-
Method Detail
-
getHeaderValue
public static String getHeaderValue(org.apache.http.HttpMessage message, String headerName)
-
setHeaderValue
public static void setHeaderValue(org.apache.http.HttpMessage message, String headerName, String headerValue)
-
getEntity
public static <T> T getEntity(org.apache.http.HttpMessage message, Class<T> type)
-
parseBodyPartContent
public static String parseBodyPartContent(org.apache.http.io.SessionInputBuffer inBuffer, String boundary) throws org.apache.http.HttpException
- Throws:
org.apache.http.HttpException
-
getParameterValue
public static String getParameterValue(org.apache.http.HttpMessage message, String headerName, String parameterName)
-
extractEdiPayload
public static ApplicationEDIEntity extractEdiPayload(org.apache.http.HttpMessage message, PrivateKey privateKey) throws org.apache.http.HttpException
- Throws:
org.apache.http.HttpException
-
extractEdiPayloadFromCompressedEntity
public static ApplicationEDIEntity extractEdiPayloadFromCompressedEntity(ApplicationPkcs7MimeCompressedDataEntity compressedDataEntity) throws org.apache.http.HttpException
- Throws:
org.apache.http.HttpException
-
-