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