public class SimpleResponseBuilder extends org.apache.hc.core5.http.support.AbstractResponseBuilder<SimpleHttpResponse>
SimpleHttpResponse
instances.getStatus, setStatus
public static SimpleResponseBuilder create(int status)
public static SimpleResponseBuilder copy(SimpleHttpResponse response)
protected void digest(SimpleHttpResponse response)
public SimpleResponseBuilder setVersion(org.apache.hc.core5.http.ProtocolVersion version)
setVersion
in class org.apache.hc.core5.http.support.AbstractResponseBuilder<SimpleHttpResponse>
public SimpleResponseBuilder setHeaders(org.apache.hc.core5.http.Header... headers)
setHeaders
in class org.apache.hc.core5.http.support.AbstractResponseBuilder<SimpleHttpResponse>
public SimpleResponseBuilder addHeader(org.apache.hc.core5.http.Header header)
addHeader
in class org.apache.hc.core5.http.support.AbstractResponseBuilder<SimpleHttpResponse>
public SimpleResponseBuilder addHeader(String name, String value)
addHeader
in class org.apache.hc.core5.http.support.AbstractResponseBuilder<SimpleHttpResponse>
public SimpleResponseBuilder removeHeader(org.apache.hc.core5.http.Header header)
removeHeader
in class org.apache.hc.core5.http.support.AbstractResponseBuilder<SimpleHttpResponse>
public SimpleResponseBuilder removeHeaders(String name)
removeHeaders
in class org.apache.hc.core5.http.support.AbstractResponseBuilder<SimpleHttpResponse>
public SimpleResponseBuilder setHeader(org.apache.hc.core5.http.Header header)
setHeader
in class org.apache.hc.core5.http.support.AbstractResponseBuilder<SimpleHttpResponse>
public SimpleResponseBuilder setHeader(String name, String value)
setHeader
in class org.apache.hc.core5.http.support.AbstractResponseBuilder<SimpleHttpResponse>
public SimpleBody getBody()
public SimpleResponseBuilder setBody(SimpleBody body)
public SimpleResponseBuilder setBody(String content, org.apache.hc.core5.http.ContentType contentType)
public SimpleResponseBuilder setBody(byte[] content, org.apache.hc.core5.http.ContentType contentType)
public SimpleHttpResponse build()
build
in class org.apache.hc.core5.http.support.AbstractResponseBuilder<SimpleHttpResponse>
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.