use of org.springframework.ws.transport.context.TransportContext in project camel by apache.
the class AddBreadcrumbHttpHeaderTestInterceptor method handleRequest.
@Override
public boolean handleRequest(MessageContext messageContext) throws WebServiceClientException {
// no extra op
TransportContext context = TransportContextHolder.getTransportContext();
CommonsHttpConnection connection = (CommonsHttpConnection) context.getConnection();
PostMethod postMethod = connection.getPostMethod();
postMethod.addRequestHeader("breadcrumbId", "ID-Ralfs-MacBook-Pro-local-50523-1423553069254-0-5");
return true;
}
Aggregations