public abstract class MessageBody extends Object
Constructor and Description |
---|
MessageBody(String characterSet) |
Modifier and Type | Method and Description |
---|---|
static MessageBody |
createPostMethodMessageBody(boolean mimeEncoded,
String characterSet)
Creates a message body for a POST request, selecting an appropriate encoding.
|
String |
getCharacterSet()
Returns the character set associated with this message body.
|
abstract String |
getContentType()
Returns the content type of this message body.
|
abstract void |
writeTo(OutputStream outputStream,
ParameterCollection parameters)
Transmits the body of this request as a sequence of bytes.
|
public MessageBody(String characterSet)
public static MessageBody createPostMethodMessageBody(boolean mimeEncoded, String characterSet)
mimeEncoded
- if true, indicates that the request is using mime encoding.characterSet
- the character set of the request.public String getCharacterSet()
public abstract String getContentType()
public abstract void writeTo(OutputStream outputStream, ParameterCollection parameters) throws IOException
IOException
Copyright © 2012. All Rights Reserved.