@ProviderType public interface ConverterResponseBuilder
Modifier and Type | Method and Description |
---|---|
ConverterResponse |
build()
Build a ConverterResponse object with the values set in this builder.
|
ConverterResponseBuilder |
setBody(java.lang.Object body)
Set the body of the response.
|
ConverterResponseBuilder |
setContentType(java.lang.String contentType)
Set the content type of the response.
|
ConverterResponseBuilder |
withHeader(java.lang.String key,
java.lang.String value)
Add a specific header with a single value to the response.
|
ConverterResponseBuilder |
withHeader(java.lang.String key,
java.lang.String[] values)
Add a specific header with multiple values to the response.
|
@Nonnull ConverterResponseBuilder withHeader(java.lang.String key, java.lang.String value)
key
- The header's key.value
- The header's value.@Nonnull ConverterResponseBuilder withHeader(java.lang.String key, java.lang.String[] values)
key
- The header's key.values
- The header's values.@Nonnull ConverterResponseBuilder setBody(java.lang.Object body)
body
- The body.@Nonnull ConverterResponseBuilder setContentType(java.lang.String contentType)
contentType
- The content type.@Nonnull ConverterResponse build()
Copyright © 2010 - 2020 Adobe. All Rights Reserved