Package org.eclipse.jetty.client
Class StringRequestContent
java.lang.Object
org.eclipse.jetty.io.content.ByteBufferContentSource
org.eclipse.jetty.client.ByteBufferRequestContent
org.eclipse.jetty.client.BytesRequestContent
org.eclipse.jetty.client.StringRequestContent
- All Implemented Interfaces:
Request.Content
,Content.Source
- Direct Known Subclasses:
FormRequestContent
A Request.Content
for strings.
It is possible to specify, at the constructor, an encoding used to convert the string into bytes, by default UTF-8.
-
Constructor Summary
ConstructorDescriptionStringRequestContent
(String content) StringRequestContent
(String contentType, String content) StringRequestContent
(String contentType, String content, Charset encoding) StringRequestContent
(String content, Charset encoding) -
Method Summary
Methods inherited from class org.eclipse.jetty.client.ByteBufferRequestContent
getContentType
Methods inherited from class org.eclipse.jetty.io.content.ByteBufferContentSource
demand, fail, getByteBuffers, getLength, read, rewind
-
Constructor Details
-
StringRequestContent
-
StringRequestContent
-
StringRequestContent
-
StringRequestContent
-