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
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 ContentProvider
ContentProvider.Typed -
Constructor Summary
ConstructorsConstructorDescriptionStringContentProvider(String content) StringContentProvider(String content, String encoding) StringContentProvider(String contentType, String content, Charset charset) StringContentProvider(String content, Charset charset) -
Method Summary
Methods inherited from class BytesContentProvider
getLength, isReproducible, iteratorMethods inherited from class AbstractTypedContentProvider
getContentTypeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
StringContentProvider
-
StringContentProvider
-
StringContentProvider
-
StringContentProvider
-