Class AhcEndpointBuilderFactory.AhcHeaderNameBuilder
- java.lang.Object
-
- org.apache.camel.builder.endpoint.dsl.AhcEndpointBuilderFactory.AhcHeaderNameBuilder
-
- Enclosing interface:
- AhcEndpointBuilderFactory
public static class AhcEndpointBuilderFactory.AhcHeaderNameBuilder extends Object
The builder of headers' name for the Async HTTP Client (AHC) component.
-
-
Constructor Summary
Constructors Constructor Description AhcHeaderNameBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
contentEncoding()
The HTTP content encoding.String
contentLength()
The content length of the response.String
contentType()
The HTTP content type.String
httpBaseUri()
The base of the path to append to the URI.String
httpMethod()
The http method to execute.String
httpPath()
Request URI's path, the header will be used to build the request URI with the HTTP_URI.String
httpQuery()
Camel 2.11 onwards: URI parameters.String
httpResponseCode()
The HTTP response code from the external server.String
httpResponseText()
The Http response status text.String
httpUri()
URI to call.String
location()
The redirect location.
-
-
-
Method Detail
-
httpResponseCode
public String httpResponseCode()
The HTTP response code from the external server. Is 200 for OK. The option is a:int
type. Group: producer- Returns:
- the name of the header
HttpResponseCode
.
-
httpResponseText
public String httpResponseText()
The Http response status text. The option is a:java.lang.String
type. Group: producer- Returns:
- the name of the header
HttpResponseText
.
-
contentLength
public String contentLength()
The content length of the response. The option is a:int
type. Group: producer- Returns:
- the name of the header
Content-Length
.
-
httpMethod
public String httpMethod()
The http method to execute. The option is a:java.lang.String
type. Group: producer- Returns:
- the name of the header
HttpMethod
.
-
contentEncoding
public String contentEncoding()
The HTTP content encoding. Is set on both the IN and OUT message to provide a content encoding, such as gzip. The option is a:java.lang.String
type. Group: producer- Returns:
- the name of the header
Content-Encoding
.
-
contentType
public String contentType()
The HTTP content type. Is set on both the IN and OUT message to provide a content type, such as text/html. The option is a:java.lang.String
type. Group: producer- Returns:
- the name of the header
Content-Type
.
-
location
public String location()
The redirect location. The option is a:java.lang.String
type. Group: producer- Returns:
- the name of the header
Location
.
-
httpUri
public String httpUri()
URI to call. Will override existing URI set directly on the endpoint. The option is a:java.lang.String
type. Group: producer- Returns:
- the name of the header
HttpUri
.
-
httpPath
public String httpPath()
Request URI's path, the header will be used to build the request URI with the HTTP_URI. If the path is start with /, http producer will try to find the relative path based on the Exchange.HTTP_BASE_URI header or the exchange.getFromEndpoint().getEndpointUri(). The option is a:java.lang.String
type. Group: producer- Returns:
- the name of the header
HttpPath
.
-
httpBaseUri
public String httpBaseUri()
The base of the path to append to the URI. The option is a:java.lang.String
type. Group: producer- Returns:
- the name of the header
HttpBaseUri
.
-
httpQuery
public String httpQuery()
Camel 2.11 onwards: URI parameters. Will override existing URI parameters set directly on the endpoint. The option is a:java.lang.String
type. Group: producer- Returns:
- the name of the header
HttpQuery
.
-
-