public class RequestMessage extends Object
RequestMessage
class represents an HTTP request message including
method, headers, and body content.Constructor and Description |
---|
RequestMessage()
Creates a new
RequestMessage instance. |
RequestMessage(String method)
Creates a new
RequestMessage instance with a given method |
Modifier and Type | Method and Description |
---|---|
Object |
getContent()
Returns the message body content.
|
Map<String,String> |
getHeader()
Returns a map of message headers.
|
String |
getMethod()
Returns the message's HTTP method.
|
void |
setContent(OutputStream value) |
void |
setContent(String value)
Sets the message body content.
|
void |
setMethod(String value)
Sets the message's HTTP method.
|
public RequestMessage()
RequestMessage
instance.public RequestMessage(String method)
RequestMessage
instance with a given methodmethod
- String valuepublic Map<String,String> getHeader()
Map
of message headers.public String getMethod()
public void setMethod(String value)
value
- The HTTP method.public Object getContent()
public void setContent(String value)
value
- The message content.public void setContent(OutputStream value)
Copyright © 2022 Splunk, Inc.. All rights reserved.