public class AbstractRepositoryCapability extends org.jboss.osgi.resolver.spi.AbstractCapability implements XContentCapability
XContentCapability
.DEFAULT_DIGEST, DEFAULT_MIME_TYPE, DEFAULT_SIZE
Constructor and Description |
---|
AbstractRepositoryCapability(org.jboss.osgi.resolver.XResource resource,
String namespace,
Map<String,Object> atts,
Map<String,String> dirs) |
Modifier and Type | Method and Description |
---|---|
<T extends org.jboss.osgi.resolver.XCapability> |
adapt(Class<T> clazz) |
String |
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() |
getAttribute, getAttributes, getDirective, getDirectives, getName, getNamespace, getPackageName, getResource, getType, getVersion, isSingleton, toString
getAttachment, putAttachment, removeAttachment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttachment, putAttachment, removeAttachment
getAttribute, getAttributes
public String getMimeType()
XContentCapability
getMimeType
in interface XContentCapability
public String getDigest()
XContentCapability
getDigest
in interface XContentCapability
public String getContentURL()
XContentCapability
getContentURL
in interface XContentCapability
public Long getSize()
XContentCapability
getSize
in interface XContentCapability
public void validate()
validate
in interface org.jboss.osgi.resolver.XCapability
validate
in class org.jboss.osgi.resolver.spi.AbstractCapability
public <T extends org.jboss.osgi.resolver.XCapability> T adapt(Class<T> clazz)
adapt
in interface org.jboss.osgi.resolver.XCapability
adapt
in class org.jboss.osgi.resolver.spi.AbstractCapability
Copyright © 2013 JBoss by Red Hat. All rights reserved.