Interface HttpDestination
- All Superinterfaces:
ExtensionDestination
- All Known Subinterfaces:
ExtensionHttpDestination
- All Known Implementing Classes:
HttpDestinationImpl
We recommend an encrypted HTTPS
connection for production setups. However, we also accept unencrypted HTTP
connections for development purposes. HTTP redirects will not be followed and cache headers will be ignored.
Example to create an instance using the builder pattern
HttpDestination httpDestination = HttpDestination.builder()
.url("{url}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpDestinationBuilder
builder()
builder factory method for HttpDestinationstatic HttpDestinationBuilder
builder
(HttpDestination template) create builder for HttpDestination instancestatic HttpDestination
deepCopy
(HttpDestination template) factory method to create a deep copy of HttpDestinationAuthentication methods (such asBasic
orBearer
).@NotNull String
getUrl()
URL to the target destination.static HttpDestination
of()
factory methodstatic HttpDestination
of
(HttpDestination template) factory method to create a shallow copy HttpDestinationvoid
setAuthentication
(HttpDestinationAuthentication authentication) Authentication methods (such asBasic
orBearer
).void
URL to the target destination.static com.fasterxml.jackson.core.type.TypeReference<HttpDestination>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withHttpDestination
(Function<HttpDestination, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.extension.ExtensionDestination
getType, withExtensionDestination
-
Field Details
-
HTTP
discriminator value for HttpDestination- See Also:
-
-
Method Details
-
getUrl
URL to the target destination. If the Project is hosted in the China (AWS, Ningxia) Region, verify that the URL is not blocked due to firewall restrictions.
- Returns:
- url
-
getAuthentication
Authentication methods (such as
Basic
orBearer
).- Returns:
- authentication
-
setUrl
URL to the target destination. If the Project is hosted in the China (AWS, Ningxia) Region, verify that the URL is not blocked due to firewall restrictions.
- Parameters:
url
- value to be set
-
setAuthentication
Authentication methods (such as
Basic
orBearer
).- Parameters:
authentication
- value to be set
-
of
factory method- Returns:
- instance of HttpDestination
-
of
factory method to create a shallow copy HttpDestination- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of HttpDestination- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for HttpDestination- Returns:
- builder
-
builder
create builder for HttpDestination instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withHttpDestination
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-