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
public static interface ContentProvider.Typed extends ContentProvider
An extension ofContentProviderthat provides a content type string to be used as aContent-TypeHTTP header in requests.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.ContentProvider
ContentProvider.Typed
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContentType()-
Methods inherited from interface org.eclipse.jetty.client.api.ContentProvider
getLength, isReproducible
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getContentType
String getContentType()
- Returns:
- the content type string such as "application/octet-stream" or "application/json;charset=UTF8", or null if no content type must be set
-
-