public abstract class AbstractResponseBuilder<T> extends AbstractMessageBuilder<T>
BasicHttpRequest
instances.Modifier | Constructor and Description |
---|---|
protected |
AbstractResponseBuilder(int status) |
Modifier and Type | Method and Description |
---|---|
AbstractResponseBuilder<T> |
addHeader(Header header) |
AbstractResponseBuilder<T> |
addHeader(String name,
String value) |
protected abstract T |
build() |
int |
getStatus() |
AbstractResponseBuilder<T> |
removeHeader(Header header) |
AbstractResponseBuilder<T> |
removeHeaders(String name) |
AbstractResponseBuilder<T> |
setHeader(Header header) |
AbstractResponseBuilder<T> |
setHeader(String name,
String value) |
AbstractResponseBuilder<T> |
setHeaders(Header... headers) |
void |
setStatus(int status) |
AbstractResponseBuilder<T> |
setVersion(ProtocolVersion version) |
digest, getFirstHeader, getFirstHeaders, getHeaders, getHeaders, getLastHeader, getVersion, setHeaders
public int getStatus()
public void setStatus(int status)
public AbstractResponseBuilder<T> setVersion(ProtocolVersion version)
setVersion
in class AbstractMessageBuilder<T>
public AbstractResponseBuilder<T> setHeaders(Header... headers)
setHeaders
in class AbstractMessageBuilder<T>
public AbstractResponseBuilder<T> addHeader(Header header)
addHeader
in class AbstractMessageBuilder<T>
public AbstractResponseBuilder<T> addHeader(String name, String value)
addHeader
in class AbstractMessageBuilder<T>
public AbstractResponseBuilder<T> removeHeader(Header header)
removeHeader
in class AbstractMessageBuilder<T>
public AbstractResponseBuilder<T> removeHeaders(String name)
removeHeaders
in class AbstractMessageBuilder<T>
public AbstractResponseBuilder<T> setHeader(Header header)
setHeader
in class AbstractMessageBuilder<T>
public AbstractResponseBuilder<T> setHeader(String name, String value)
setHeader
in class AbstractMessageBuilder<T>
protected abstract T build()
build
in class AbstractMessageBuilder<T>
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.