public class MuleEventToHttpRequest extends Object
Event to a HttpRequest.| Modifier and Type | Field and Description |
|---|---|
static List<String> |
DEFAULT_EMPTY_BODY_METHODS |
| Constructor and Description |
|---|
MuleEventToHttpRequest(HttpRequesterConfig config,
String uri,
String method,
HttpStreamingType streamingMode,
HttpSendBodyMode sendBodyMode,
TransformationService transformationService) |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
create(Event event,
HttpRequesterRequestBuilder requestBuilder,
HttpAuthentication authentication,
MuleContext muleContext)
Creates an .
|
public MuleEventToHttpRequest(HttpRequesterConfig config, String uri, String method, HttpStreamingType streamingMode, HttpSendBodyMode sendBodyMode, TransformationService transformationService)
public HttpRequest create(Event event, HttpRequesterRequestBuilder requestBuilder, HttpAuthentication authentication, MuleContext muleContext) throws org.mule.runtime.api.exception.MuleException
event - The Event that should be used to set the HttpRequest content.requestBuilder - The generic HttpRequesterRequestBuilder from the request component that should be used to
create the HttpRequest.authentication - The HttpAuthentication that should be used to create the HttpRequest.muleContext - the Mule node.org.mule.runtime.api.exception.MuleException - if the request creation fails.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.