public abstract class AbstractMessageBuilder<T> extends Object
HttpMessage
builder.Modifier | Constructor and Description |
---|---|
protected |
AbstractMessageBuilder() |
Modifier and Type | Method and Description |
---|---|
AbstractMessageBuilder<T> |
addHeader(Header header) |
AbstractMessageBuilder<T> |
addHeader(String name,
String value) |
protected abstract T |
build() |
protected void |
digest(HttpMessage message) |
Header |
getFirstHeader(String name) |
Header[] |
getFirstHeaders() |
Header[] |
getHeaders() |
Header[] |
getHeaders(String name) |
Header |
getLastHeader(String name) |
ProtocolVersion |
getVersion() |
AbstractMessageBuilder<T> |
removeHeader(Header header) |
AbstractMessageBuilder<T> |
removeHeaders(String name) |
AbstractMessageBuilder<T> |
setHeader(Header header) |
AbstractMessageBuilder<T> |
setHeader(String name,
String value) |
AbstractMessageBuilder<T> |
setHeaders(Header... headers) |
AbstractMessageBuilder<T> |
setHeaders(Iterator<Header> it) |
AbstractMessageBuilder<T> |
setVersion(ProtocolVersion version) |
protected void digest(HttpMessage message)
public ProtocolVersion getVersion()
public AbstractMessageBuilder<T> setVersion(ProtocolVersion version)
public Header[] getHeaders()
public AbstractMessageBuilder<T> setHeaders(Header... headers)
public AbstractMessageBuilder<T> setHeaders(Iterator<Header> it)
public Header[] getFirstHeaders()
public AbstractMessageBuilder<T> addHeader(Header header)
public AbstractMessageBuilder<T> addHeader(String name, String value)
public AbstractMessageBuilder<T> removeHeader(Header header)
public AbstractMessageBuilder<T> removeHeaders(String name)
public AbstractMessageBuilder<T> setHeader(Header header)
public AbstractMessageBuilder<T> setHeader(String name, String value)
protected abstract T build()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.