com.splunk
Class RequestMessage

java.lang.Object
  extended by com.splunk.RequestMessage

public class RequestMessage
extends java.lang.Object

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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestMessage

public RequestMessage()
Creates a new RequestMessage instance.


RequestMessage

public RequestMessage(java.lang.String method)
Creates a new RequestMessage instance with a given method

Method Detail

getHeader

public java.util.Map<java.lang.String,java.lang.String> getHeader()
Returns a map of message headers.

Returns:
A Map of message headers.

getMethod

public java.lang.String getMethod()
Returns the message's HTTP method.

Returns:
The HTTP method.

setMethod

public void setMethod(java.lang.String value)
Sets the message's HTTP method.

Parameters:
value - The HTTP method.

getContent

public java.lang.Object getContent()
Returns the message body content.

Returns:
The message content.

setContent

public void setContent(java.lang.String value)
Sets the message body content.

Parameters:
value - The message content.

setContent

public void setContent(java.io.OutputStream value)