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
@Deprecated(since="2021-05-27") public class StringContentProvider extends BytesContentProvider
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.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)
Deprecated.StringContentProvider(java.lang.String content, java.lang.String encoding)
Deprecated.StringContentProvider(java.lang.String contentType, java.lang.String content, java.nio.charset.Charset charset)
Deprecated.StringContentProvider(java.lang.String content, java.nio.charset.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
-
-
-
-
Constructor Detail
-
StringContentProvider
public StringContentProvider(java.lang.String content)
Deprecated.
-
StringContentProvider
public StringContentProvider(java.lang.String content, java.lang.String encoding)
Deprecated.
-
StringContentProvider
public StringContentProvider(java.lang.String content, java.nio.charset.Charset charset)
Deprecated.
-
StringContentProvider
public StringContentProvider(java.lang.String contentType, java.lang.String content, java.nio.charset.Charset charset)
Deprecated.
-
-