java.lang.Object
org.eclipse.jetty.client.ContentSourceRequestContent
- All Implemented Interfaces:
Request.Content,org.eclipse.jetty.io.Content.Source
A
Request.Content that wraps a Content.Source.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source
org.eclipse.jetty.io.Content.Source.Factory -
Constructor Summary
ConstructorsConstructorDescriptionContentSourceRequestContent(org.eclipse.jetty.io.Content.Source source) ContentSourceRequestContent(org.eclipse.jetty.io.Content.Source source, String contentType) -
Method Summary
-
Constructor Details
-
ContentSourceRequestContent
public ContentSourceRequestContent(org.eclipse.jetty.io.Content.Source source) -
ContentSourceRequestContent
-
-
Method Details
-
getContentSource
public org.eclipse.jetty.io.Content.Source getContentSource() -
getContentType
- Specified by:
getContentTypein interfaceRequest.Content- Returns:
- the value of the
Content-Typeheader for the request content, such astext/html;charset=utf-8orapplication/json, ornullto use the value fromHttpClient.getDefaultRequestContentType()
-
getLength
public long getLength()- Specified by:
getLengthin interfaceorg.eclipse.jetty.io.Content.Source
-
read
public org.eclipse.jetty.io.Content.Chunk read()- Specified by:
readin interfaceorg.eclipse.jetty.io.Content.Source
-
demand
- Specified by:
demandin interfaceorg.eclipse.jetty.io.Content.Source
-
fail
- Specified by:
failin interfaceorg.eclipse.jetty.io.Content.Source
-
fail
- Specified by:
failin interfaceorg.eclipse.jetty.io.Content.Source
-
rewind
public boolean rewind()- Specified by:
rewindin interfaceorg.eclipse.jetty.io.Content.Source
-