Package org.eclipse.jetty.client.util
Class StringContentProvider
java.lang.Object
org.eclipse.jetty.client.util.AbstractTypedContentProvider
org.eclipse.jetty.client.util.BytesContentProvider
org.eclipse.jetty.client.util.StringContentProvider
- All Implemented Interfaces:
Iterable<ByteBuffer>
,ContentProvider
,ContentProvider.Typed
- Direct Known Subclasses:
FormContentProvider
Deprecated.
A
ContentProvider
for strings.
It is possible to specify, at the constructor, an encoding used to convert the string into bytes, by default UTF-8.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.ContentProvider
ContentProvider.Typed
-
Constructor Summary
ConstructorDescriptionStringContentProvider
(String content) Deprecated.StringContentProvider
(String content, String encoding) Deprecated.StringContentProvider
(String contentType, String content, Charset charset) Deprecated.StringContentProvider
(String content, Charset charset) Deprecated. -
Method Summary
Methods inherited from class org.eclipse.jetty.client.util.BytesContentProvider
getLength, isReproducible, iterator
Methods inherited from class org.eclipse.jetty.client.util.AbstractTypedContentProvider
getContentType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
StringContentProvider
Deprecated. -
StringContentProvider
Deprecated. -
StringContentProvider
Deprecated. -
StringContentProvider
Deprecated.
-
StringRequestContent
instead.