com.github.restdriver.serverdriver.http.request
Class RequestBody

java.lang.Object
  extended by com.github.restdriver.serverdriver.http.request.RequestBody

public final class RequestBody
extends Object

Encapsulates a Request body for a PUT or a POST. User: mjg Date: 21/04/11 Time: 14:32


Constructor Summary
RequestBody(String content, String contentType)
          Creates a new request body instance.
 
Method Summary
 String getContent()
          Gets the content of this request body.
 String getContentType()
          Gets the content-type of this request body.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestBody

public RequestBody(String content,
                   String contentType)
Creates a new request body instance.

Parameters:
content - A string to use for the content
contentType - A string representing the content-type
Method Detail

getContent

public String getContent()
Gets the content of this request body.

Returns:
The content as a string

getContentType

public String getContentType()
Gets the content-type of this request body.

Returns:
The content-type as a string


Copyright © 2011. All Rights Reserved.