@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(Object body)
Set the body of the response.
|
ConverterResponseBuilder |
setContentType(String contentType)
Set the content type of the response.
|
ConverterResponseBuilder |
withHeader(String key,
String value)
Add a specific header with a single value to the response.
|
ConverterResponseBuilder |
withHeader(String key,
String[] values)
Add a specific header with multiple values to the response.
|
@Nonnull ConverterResponseBuilder withHeader(String key, String value)
key - The header's key.value - The header's value.@Nonnull ConverterResponseBuilder withHeader(String key, String[] values)
key - The header's key.values - The header's values.@Nonnull ConverterResponseBuilder setBody(Object body)
body - The body.@Nonnull ConverterResponseBuilder setContentType(String contentType)
contentType - The content type.@Nonnull ConverterResponse build()
Copyright © 2010 - 2020 Adobe. All Rights Reserved