public class Message extends Object
| Constructor and Description |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
Message |
addContent(String name,
String type,
String value)
This method adds new content.
|
boolean |
equals(Object obj) |
Map<String,Content> |
getContent() |
Map<String,String> |
getHeaders() |
int |
hashCode() |
void |
setContent(Map<String,Content> content) |
void |
setHeaders(Map<String,String> headers) |
String |
toString() |
public void setHeaders(Map<String,String> headers)
headers - the headers to setpublic void setContent(Map<String,Content> content)
content - the content to setpublic Message addContent(String name, String type, String value)
name - The optional nametype - The optional typevalue - The valueCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.