public class AsyncResponseBuilder extends AbstractResponseBuilder<AsyncResponseProducer>
AsyncResponseProducer
instances.Modifier and Type | Method and Description |
---|---|
AsyncResponseBuilder |
addHeader(Header header) |
AsyncResponseBuilder |
addHeader(String name,
String value) |
AsyncResponseProducer |
build() |
static AsyncResponseBuilder |
create(int status) |
AsyncEntityProducer |
getEntity() |
AsyncResponseBuilder |
removeHeader(Header header) |
AsyncResponseBuilder |
removeHeaders(String name) |
AsyncResponseBuilder |
setEntity(AsyncEntityProducer entityProducer) |
AsyncResponseBuilder |
setEntity(byte[] content,
ContentType contentType) |
AsyncResponseBuilder |
setEntity(String content) |
AsyncResponseBuilder |
setEntity(String content,
ContentType contentType) |
AsyncResponseBuilder |
setHeader(Header header) |
AsyncResponseBuilder |
setHeader(String name,
String value) |
AsyncResponseBuilder |
setHeaders(Header... headers) |
AsyncResponseBuilder |
setVersion(ProtocolVersion version) |
String |
toString() |
getStatus, setStatus
digest, getFirstHeader, getFirstHeaders, getHeaders, getHeaders, getLastHeader, getVersion, setHeaders
public static AsyncResponseBuilder create(int status)
public AsyncResponseBuilder setVersion(ProtocolVersion version)
setVersion
in class AbstractResponseBuilder<AsyncResponseProducer>
public AsyncResponseBuilder setHeaders(Header... headers)
setHeaders
in class AbstractResponseBuilder<AsyncResponseProducer>
public AsyncResponseBuilder addHeader(Header header)
addHeader
in class AbstractResponseBuilder<AsyncResponseProducer>
public AsyncResponseBuilder addHeader(String name, String value)
addHeader
in class AbstractResponseBuilder<AsyncResponseProducer>
public AsyncResponseBuilder removeHeader(Header header)
removeHeader
in class AbstractResponseBuilder<AsyncResponseProducer>
public AsyncResponseBuilder removeHeaders(String name)
removeHeaders
in class AbstractResponseBuilder<AsyncResponseProducer>
public AsyncResponseBuilder setHeader(Header header)
setHeader
in class AbstractResponseBuilder<AsyncResponseProducer>
public AsyncResponseBuilder setHeader(String name, String value)
setHeader
in class AbstractResponseBuilder<AsyncResponseProducer>
public AsyncEntityProducer getEntity()
public AsyncResponseBuilder setEntity(AsyncEntityProducer entityProducer)
public AsyncResponseBuilder setEntity(String content, ContentType contentType)
public AsyncResponseBuilder setEntity(String content)
public AsyncResponseBuilder setEntity(byte[] content, ContentType contentType)
public AsyncResponseProducer build()
build
in class AbstractResponseBuilder<AsyncResponseProducer>
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.