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,org.eclipse.jetty.io.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
ConstructorsConstructorDescriptionStringRequestContent(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
getContentTypeMethods inherited from class org.eclipse.jetty.io.content.ByteBufferContentSource
demand, fail, getByteBuffers, getLength, read, rewindMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.io.Content.Source
demand, fail, fail, getLength, read, rewind
-
Constructor Details
-
StringRequestContent
-
StringRequestContent
-
StringRequestContent
-
StringRequestContent
-