public class ServletHeaderSource extends Object implements MimeHeaderSource
HeaderSource
that pulls header
information from an HttpServlet.Constructor and Description |
---|
ServletHeaderSource(HttpServletRequest req,
HttpServletResponse res) |
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
getHeaderMap() |
MimeHeaders |
getMimeHeaders()
Gets the MIME headers from an inbound source.
|
void |
setHeaderMap(Map<String,List<String>> headers) |
void |
setMimeHeaders(MimeHeaders headers)
Sets the MIME headers for an outbound source.
|
public ServletHeaderSource(HttpServletRequest req, HttpServletResponse res)
public MimeHeaders getMimeHeaders()
MimeHeaderSource
null
if the transport does not provide headers.getMimeHeaders
in interface MimeHeaderSource
public void setMimeHeaders(MimeHeaders headers)
MimeHeaderSource
null
if the transport does not provide headers.setMimeHeaders
in interface MimeHeaderSource
headers
- the MIME headersCopyright © 2018 JBoss by Red Hat. All rights reserved.