public interface ContentCapability extends Capability
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DIGEST |
static String |
DEFAULT_MIME_TYPE |
static Long |
DEFAULT_SIZE |
| 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
|
getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResourcestatic final String DEFAULT_DIGEST
static final String DEFAULT_MIME_TYPE
static final Long DEFAULT_SIZE
String getMimeType()
String getDigest()
InputStream getContentStream()
URL getContentURL()
Long getSize()
Copyright © 2014 JBoss by Red Hat. All rights reserved.