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.
|
ConverterResponseBuilder withHeader(java.lang.String key, java.lang.String value)
key
- The header's key.value
- The header's value.ConverterResponseBuilder withHeader(java.lang.String key, java.lang.String[] values)
key
- The header's key.values
- The header's values.ConverterResponseBuilder setBody(java.lang.Object body)
body
- The body.ConverterResponseBuilder setContentType(java.lang.String contentType)
contentType
- The content type.ConverterResponse build()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"