public class AbstractContentCapability extends AbstractCapability implements ContentCapability
ContentCapability
.DEFAULT_DIGEST, DEFAULT_MIME_TYPE, DEFAULT_SIZE
Constructor and Description |
---|
AbstractContentCapability(AbstractResource resource,
String namespace,
Map<String,Object> atts,
Map<String,String> dirs) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getContentStream()
The stream to the content bytes.
|
URL |
getContentURL()
The URL to the bytes.
|
String |
getDigest()
The SHA-256 hex encoded digest for this resource
|
String |
getMimeType()
An IANA defined MIME type for the format of this content
|
Long |
getSize()
The size of the resource in bytes as it will be read from the URL
|
void |
validate() |
adapt, getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResource, getVersion, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResource
public String getMimeType()
ContentCapability
getMimeType
in interface ContentCapability
public String getDigest()
ContentCapability
getDigest
in interface ContentCapability
public InputStream getContentStream()
ContentCapability
getContentStream
in interface ContentCapability
public URL getContentURL()
ContentCapability
getContentURL
in interface ContentCapability
public Long getSize()
ContentCapability
getSize
in interface ContentCapability
public void validate()
validate
in class AbstractCapability
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.