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:
java.lang.Iterable<java.nio.ByteBuffer>
,ContentProvider
,ContentProvider.Typed
- Direct Known Subclasses:
FormContentProvider
public class StringContentProvider extends BytesContentProvider
AContentProvider
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
Constructors Constructor Description StringContentProvider(java.lang.String content)
StringContentProvider(java.lang.String content, java.lang.String encoding)
StringContentProvider(java.lang.String contentType, java.lang.String content, java.nio.charset.Charset charset)
StringContentProvider(java.lang.String content, java.nio.charset.Charset charset)
-
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
-
-
-
-
Constructor Detail
-
StringContentProvider
public StringContentProvider(java.lang.String content)
-
StringContentProvider
public StringContentProvider(java.lang.String content, java.lang.String encoding)
-
StringContentProvider
public StringContentProvider(java.lang.String content, java.nio.charset.Charset charset)
-
StringContentProvider
public StringContentProvider(java.lang.String contentType, java.lang.String content, java.nio.charset.Charset charset)
-
-