public abstract class AbstractContent extends Object implements Content
Content interface. AbstractContent
holds ContentSource instance and delegate methods for
ContentSource| Modifier and Type | Field and Description |
|---|---|
protected String |
contentType |
protected ContentSource |
source |
| Constructor and Description |
|---|
AbstractContent(ContentSource source) |
AbstractContent(ContentSource source,
String type) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength() |
ContentSource |
getContentSource()
Returns
ContentSource for this Content |
String |
getContentType() |
protected ContentSource source
protected String contentType
public AbstractContent(ContentSource source)
public AbstractContent(ContentSource source, String type)
public String getContentType()
getContentType in interface Contentpublic long getContentLength()
getContentLength in interface Contentpublic ContentSource getContentSource()
ContentContentSource for this ContentgetContentSource in interface ContentCopyright © 2019. All rights reserved.