Class HttpMessageUtils
- java.lang.Object
-
- org.apache.camel.component.as2.api.util.HttpMessageUtils
-
public final class HttpMessageUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpMessageUtils.DecrpytingAndSigningInfo
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApplicationEntityextractEdiPayload(org.apache.http.HttpMessage message, HttpMessageUtils.DecrpytingAndSigningInfo decrpytingAndSigningInfo)static ApplicationEntityextractEdiPayloadFromCompressedEntity(ApplicationPkcs7MimeCompressedDataEntity compressedDataEntity, HttpMessageUtils.DecrpytingAndSigningInfo decrpytingAndSigningInfo)static <T> TgetEntity(org.apache.http.HttpMessage message, Class<T> type)static StringgetHeaderValue(org.apache.http.HttpMessage message, String headerName)static StringgetParameterValue(org.apache.http.HttpMessage message, String headerName, String parameterName)static StringparseBodyPartContent(org.apache.http.io.SessionInputBuffer inBuffer, String boundary)static voidsetHeaderValue(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 ApplicationEntity extractEdiPayload(org.apache.http.HttpMessage message, HttpMessageUtils.DecrpytingAndSigningInfo decrpytingAndSigningInfo) throws org.apache.http.HttpException
- Throws:
org.apache.http.HttpException
-
extractEdiPayloadFromCompressedEntity
public static ApplicationEntity extractEdiPayloadFromCompressedEntity(ApplicationPkcs7MimeCompressedDataEntity compressedDataEntity, HttpMessageUtils.DecrpytingAndSigningInfo decrpytingAndSigningInfo) throws org.apache.http.HttpException
- Throws:
org.apache.http.HttpException
-
-