public class DefaultHttpResponse extends BaseHttpMessage implements HttpResponse
Constructor and Description |
---|
DefaultHttpResponse(ResponseStatus responseStatus,
org.apache.commons.collections.MultiMap headers,
HttpEntity body) |
Modifier and Type | Method and Description |
---|---|
HttpEntity |
getEntity() |
Collection<String> |
getHeaderNames() |
String |
getHeaderValue(String headerName) |
Collection<String> |
getHeaderValues(String headerName) |
String |
getReasonPhrase() |
int |
getStatusCode() |
void |
setReasonPhrase(String reasonPhrase) |
void |
setStatusCode(int statusCode) |
getHeaderValueIgnoreCase, getHeaderValuesIgnoreCase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeaderValueIgnoreCase, getHeaderValuesIgnoreCase
public DefaultHttpResponse(ResponseStatus responseStatus, org.apache.commons.collections.MultiMap headers, HttpEntity body)
public HttpEntity getEntity()
getEntity
in interface HttpMessage
EmptyHttpEntity
is returnedpublic Collection<String> getHeaderNames()
getHeaderNames
in interface HttpMessage
public String getHeaderValue(String headerName)
getHeaderValue
in interface HttpMessage
headerName
- name of the headerpublic Collection<String> getHeaderValues(String headerName)
getHeaderValues
in interface HttpMessage
headerName
- name of the headerpublic int getStatusCode()
getStatusCode
in interface HttpResponse
public void setStatusCode(int statusCode)
setStatusCode
in interface HttpResponse
public String getReasonPhrase()
getReasonPhrase
in interface HttpResponse
public void setReasonPhrase(String reasonPhrase)
setReasonPhrase
in interface HttpResponse
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.