Package org.eclipse.jetty.client.api
Interface ContentProvider.Typed
- All Superinterfaces:
ContentProvider,Iterable<ByteBuffer>
- All Known Implementing Classes:
AbstractTypedContentProvider,ByteBufferContentProvider,BytesContentProvider,FormContentProvider,MultiPartContentProvider,PathContentProvider,StringContentProvider
- Enclosing interface:
ContentProvider
@Deprecated(since="2021-05-27")
public static interface ContentProvider.Typed
extends ContentProvider
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
An extension of
ContentProvider that provides a content type string
to be used as a Content-Type HTTP header in requests.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.ContentProvider
ContentProvider.Typed -
Method Summary
Methods inherited from interface org.eclipse.jetty.client.api.ContentProvider
getLength, isReproducibleMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getContentType
String getContentType()Deprecated.- Returns:
- the content type string such as "application/octet-stream" or "application/json;charset=UTF8", or null if no content type must be set
-