public class DispatchingResponse extends Object
MessageDispatcher
.Constructor and Description |
---|
DispatchingResponse(InputStream content,
Map<String,String> headers) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getContent() |
String |
getContentType() |
Optional<String> |
getHeader(String headerName) |
Map<String,String> |
getHeaders() |
public DispatchingResponse(InputStream content, Map<String,String> headers)
public InputStream getContent()
public String getContentType()
public Map<String,String> getHeaders()
public Optional<String> getHeader(String headerName)
headerName
- the name of the header which values are requestedOptional
carrying the value of the header, Optional.empty()
if the header does not exist.Copyright © 2018. All rights reserved.