Class ApiStreamPipe

All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasTransactionAttribute, IConfigurable, IForwardTarget, IPipe, IScopeProvider, IWithParameters, NameAware, EventThrowing, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle

@Deprecated public class ApiStreamPipe extends StreamPipe
Deprecated.
Extension to StreamPipe for API Management.

In StreamPipe for parameter httpRequest and attribute extractFirstStringPart=true the first part is returned to the pipeline. In this class the first part is checked. If it contains a 'MessageID' with namespace, then the message to return to the pipeline is retrieved from the MessageStore.

This class is created for applications which can not perform one multipart call with a business request in the first (string) part and one or more filestreams in the next (file) parts. Instead of one multipart call, two calls are performed:

  1. text/xml call with the business request. The API Management application returns on this call an unique messageId (which is saved in the MessageStore together with the business request)
  2. multipart call with in the first (string) part the unique messageId and in the following (file) parts the filestreams

Author:
Peter Leeuwenburgh