Class 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.
    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 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.