Top Description Fields Constructors Methods
org.apache.hc.core5.http.nio.support

public Class AsyncPushBuilder

extends AbstractResponseBuilder<AsyncPushProducer>
Class Inheritance
Imports
org.apache.hc.core5.http.ContentType, .Header, .HttpResponse, .ProtocolVersion, org.apache.hc.core5.http.message.BasicHttpResponse, org.apache.hc.core5.http.nio.AsyncEntityProducer, .AsyncPushProducer, org.apache.hc.core5.http.nio.entity.BasicAsyncEntityProducer, org.apache.hc.core5.http.support.AbstractResponseBuilder, org.apache.hc.core5.util.Args, java.util.Arrays

Builder for AsyncPushProducer instances.
Since
5.0

Field Summary

Modifier and TypeField and Description
private AsyncEntityProducer

Constructor Summary

AccessConstructor and Description
pack-priv
AsyncPushBuilder(final int status)

Method Summary

Modifier and TypeMethod and Description
public AsyncPushBuilder
public AsyncPushBuilder
public AsyncPushProducer
public static AsyncPushBuilder
create(final int status)

public AsyncEntityProducer
public AsyncPushBuilder
public AsyncPushBuilder
public AsyncPushBuilder
setEntity(final AsyncEntityProducer entityProducer)

public AsyncPushBuilder
setEntity(final String content, final ContentType contentType)

public AsyncPushBuilder
setEntity(final String content)

public AsyncPushBuilder
setEntity(final byte[] content, final ContentType contentType)

public AsyncPushBuilder
public AsyncPushBuilder
public AsyncPushBuilder
public AsyncPushBuilder
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.apache.hc.core5.http.support.AbstractResponseBuilder:
getStatussetStatus

Field Detail

entityProducerback to summary
private AsyncEntityProducer entityProducer

Constructor Detail

AsyncPushBuilderback to summary
pack-priv AsyncPushBuilder(final int status)

Method Detail

addHeaderback to summary
public AsyncPushBuilder addHeader(final Header header)

Overrides org.apache.hc.core5.http.support.AbstractResponseBuilder.addHeader.

Annotations
@Override
addHeaderback to summary
public AsyncPushBuilder addHeader(final String name, final String value)

Overrides org.apache.hc.core5.http.support.AbstractResponseBuilder.addHeader.

Annotations
@Override
buildback to summary
public AsyncPushProducer build()

Implements abstract org.apache.hc.core5.http.support.AbstractResponseBuilder.build.

Annotations
@Override
createback to summary
public static AsyncPushBuilder create(final int status)
getEntityback to summary
public AsyncEntityProducer getEntity()
removeHeaderback to summary
public AsyncPushBuilder removeHeader(final Header header)

Overrides org.apache.hc.core5.http.support.AbstractResponseBuilder.removeHeader.

Annotations
@Override
removeHeadersback to summary
public AsyncPushBuilder removeHeaders(final String name)

Overrides org.apache.hc.core5.http.support.AbstractResponseBuilder.removeHeaders.

Annotations
@Override
setEntityback to summary
public AsyncPushBuilder setEntity(final AsyncEntityProducer entityProducer)
setEntityback to summary
public AsyncPushBuilder setEntity(final String content, final ContentType contentType)
setEntityback to summary
public AsyncPushBuilder setEntity(final String content)
setEntityback to summary
public AsyncPushBuilder setEntity(final byte[] content, final ContentType contentType)
setHeaderback to summary
public AsyncPushBuilder setHeader(final Header header)

Overrides org.apache.hc.core5.http.support.AbstractResponseBuilder.setHeader.

Annotations
@Override
setHeaderback to summary
public AsyncPushBuilder setHeader(final String name, final String value)

Overrides org.apache.hc.core5.http.support.AbstractResponseBuilder.setHeader.

Annotations
@Override
setHeadersback to summary
public AsyncPushBuilder setHeaders(final Header... headers)

Overrides org.apache.hc.core5.http.support.AbstractResponseBuilder.setHeaders.

Annotations
@Override
setVersionback to summary
public AsyncPushBuilder setVersion(final ProtocolVersion version)

Overrides org.apache.hc.core5.http.support.AbstractResponseBuilder.setVersion.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override