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