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.
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, isReproducible
Methods 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
-
Request.Content
instead