public class EventResponseMessage extends Object
Constructor and Description |
---|
EventResponseMessage() |
Modifier and Type | Method and Description |
---|---|
String |
content()
Get the content of the event response message.
|
Map<String,String> |
headers()
Get the headers of the event response message.
|
String |
reasonPhrase()
Get the reason phrase of the event response message.
|
String |
statusCode()
Get the status code of the event response message.
|
String |
version()
Get the HTTP message version.
|
EventResponseMessage |
withContent(String content)
Set the content of the event response message.
|
EventResponseMessage |
withHeaders(Map<String,String> headers)
Set the headers of the event response message.
|
EventResponseMessage |
withReasonPhrase(String reasonPhrase)
Set the reason phrase of the event response message.
|
EventResponseMessage |
withStatusCode(String statusCode)
Set the status code of the event response message.
|
EventResponseMessage |
withVersion(String version)
Set the HTTP message version.
|
public String content()
public EventResponseMessage withContent(String content)
content
- the content value to setpublic Map<String,String> headers()
public EventResponseMessage withHeaders(Map<String,String> headers)
headers
- the headers value to setpublic String reasonPhrase()
public EventResponseMessage withReasonPhrase(String reasonPhrase)
reasonPhrase
- the reasonPhrase value to setpublic String statusCode()
public EventResponseMessage withStatusCode(String statusCode)
statusCode
- the statusCode value to setpublic String version()
public EventResponseMessage withVersion(String version)
version
- the version value to setCopyright © 2019. All rights reserved.