public class HttpRequesterBuilder extends Object implements HttpRequestOperationConfig<HttpRequesterBuilder>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HTTP_REQUEST_CONFIG_NAME |
Constructor and Description |
---|
HttpRequesterBuilder(MuleContext muleContext) |
public static final String DEFAULT_HTTP_REQUEST_CONFIG_NAME
public HttpRequesterBuilder(MuleContext muleContext)
public HttpRequesterBuilder setHost(String host)
public HttpRequesterBuilder setPort(String port)
public HttpRequesterBuilder setPath(String path)
public HttpRequesterBuilder method(String method)
method
in interface HttpRequestOperationConfig<HttpRequesterBuilder>
method
- HTTP method for the HTTP requestpublic HttpRequesterBuilder enableFollowsRedirect()
HttpRequestOperationConfig
enableFollowsRedirect
in interface HttpRequestOperationConfig<HttpRequesterBuilder>
public HttpRequesterBuilder disableFollowsRedirect()
HttpRequestOperationConfig
disableFollowsRedirect
in interface HttpRequestOperationConfig<HttpRequesterBuilder>
public HttpRequesterBuilder requestStreamingMode(HttpStreamingType mode)
HttpRequestOperationConfig
requestStreamingMode
in interface HttpRequestOperationConfig<HttpRequesterBuilder>
public HttpRequesterBuilder requestConfig(HttpRequesterConfig requestConfig)
requestConfig
in interface HttpRequestOperationConfig<HttpRequesterBuilder>
requestConfig
- the config to use for the requesterpublic HttpRequesterBuilder disableStatusCodeValidation()
HttpRequestOperationConfig
disableStatusCodeValidation
in interface HttpRequestOperationConfig<HttpRequesterBuilder>
public HttpRequesterBuilder disableParseResponse()
HttpRequestOperationConfig
disableParseResponse
in interface HttpRequestOperationConfig<HttpRequesterBuilder>
public HttpRequesterBuilder setUrl(String url)
public HttpRequesterBuilder responseTimeout(long responseTimeout)
responseTimeout
in interface OperationOptionsConfig<HttpRequesterBuilder>
responseTimeout
- maximum amount of time to wait for the HTTP responsepublic DefaultHttpRequester build() throws MuleException
MuleException
public HttpRequesterBuilder setOperationConfig(HttpRequestOptions operationOptions)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.