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

public Class AsyncResponseBuilder

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

Builder for AsyncResponseProducer instances.
Since
5.0

Field Summary

Modifier and TypeField and Description
private AsyncEntityProducer

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public AsyncResponseBuilder
public AsyncResponseBuilder
public AsyncResponseProducer
public static AsyncResponseBuilder
create(final int status)

public AsyncEntityProducer
public AsyncResponseBuilder
public AsyncResponseBuilder
public AsyncResponseBuilder
setEntity(final AsyncEntityProducer entityProducer)

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

public AsyncResponseBuilder
setEntity(final String content)

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

public AsyncResponseBuilder
public AsyncResponseBuilder
public AsyncResponseBuilder
public AsyncResponseBuilder
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

AsyncResponseBuilderback to summary
pack-priv AsyncResponseBuilder(final int status)

Method Detail

addHeaderback to summary
public AsyncResponseBuilder addHeader(final Header header)

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

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

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

Annotations
@Override
buildback to summary
public AsyncResponseProducer build()

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

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

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

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

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

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

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

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

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

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

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

Annotations
@Override
setVersionback to summary
public AsyncResponseBuilder 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