|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.RequestMessage
public class RequestMessage
The RequestMessage
class represents an HTTP request message including
method, headers, and body content.
Constructor Summary | |
---|---|
RequestMessage()
Creates a new RequestMessage instance. |
|
RequestMessage(java.lang.String method)
Creates a new RequestMessage instance with a given method |
Method Summary | |
---|---|
java.lang.Object |
getContent()
Returns the message body content. |
java.util.Map<java.lang.String,java.lang.String> |
getHeader()
Returns a map of message headers. |
java.lang.String |
getMethod()
Returns the message's HTTP method. |
void |
setContent(java.io.OutputStream value)
|
void |
setContent(java.lang.String value)
Sets the message body content. |
void |
setMethod(java.lang.String value)
Sets the message's HTTP method. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestMessage()
RequestMessage
instance.
public RequestMessage(java.lang.String method)
RequestMessage
instance with a given method
Method Detail |
---|
public java.util.Map<java.lang.String,java.lang.String> getHeader()
Map
of message headers.public java.lang.String getMethod()
public void setMethod(java.lang.String value)
value
- The HTTP method.public java.lang.Object getContent()
public void setContent(java.lang.String value)
value
- The message content.public void setContent(java.io.OutputStream value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |