public final class HttpClientUtils extends Object
HttpClient
.Modifier and Type | Method and Description |
---|---|
static org.apache.http.HttpEntity |
createEntity(org.apache.http.HttpResponse response)
Creates an new
HttpEntity by copying the HttpEntity from the
HttpResponse . |
public static org.apache.http.HttpEntity createEntity(org.apache.http.HttpResponse response) throws IOException
HttpEntity
by copying the HttpEntity
from the
HttpResponse
. This method will close the response after copying the entity.response
- The response to create the HttpEntity
fromHttpEntity
IOException
- thrown if there is a problem closing the response.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.