public static class MessageBodyWebRequest.InputStreamMessageBody extends MessageBody
| Constructor and Description |
|---|
MessageBodyWebRequest.InputStreamMessageBody(InputStream source,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Returns the content type of this message body.
|
void |
writeTo(OutputStream outputStream,
ParameterCollection parameters)
Transmits the body of this request as a sequence of bytes.
|
createPostMethodMessageBody, getCharacterSetpublic MessageBodyWebRequest.InputStreamMessageBody(InputStream source, String contentType)
public String getContentType()
getContentType in class MessageBodypublic void writeTo(OutputStream outputStream, ParameterCollection parameters) throws IOException
writeTo in class MessageBodyIOExceptionCopyright © 2012. All Rights Reserved.