Class StringContentProvider

All Implemented Interfaces:
Iterable<ByteBuffer>, ContentProvider, ContentProvider.Typed
Direct Known Subclasses:
FormContentProvider

@Deprecated public class StringContentProvider extends BytesContentProvider
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.

  • Constructor Details

    • StringContentProvider

      public StringContentProvider(String content)
      Deprecated.
    • StringContentProvider

      public StringContentProvider(String content, String encoding)
      Deprecated.
    • StringContentProvider

      public StringContentProvider(String content, Charset charset)
      Deprecated.
    • StringContentProvider

      public StringContentProvider(String contentType, String content, Charset charset)
      Deprecated.