public class InternalGadgetDescriptor extends BaseGadgetDescriptor implements GadgetDeclaration
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP |
static String |
HTTP_SEPARATOR |
static String |
URL_SEPARATOR |
| Constructor and Description |
|---|
InternalGadgetDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.Bundle |
getBundle() |
String |
getCategory() |
ComponentName |
getComponentName() |
String |
getDescription() |
String |
getDirectory() |
boolean |
getDisabled() |
String |
getEntryPoint() |
URL |
getGadgetDefinition() |
String |
getIcon() |
String |
getIconUrl() |
String |
getLabel() |
String |
getMountPoint() |
String |
getName() |
String |
getPublicGadgetDefinition()
Returns the public URL of the gadget spec.
|
URL |
getResource(String resourcePath) |
InputStream |
getResourceAsStream(String resourcePath) |
String |
getScreenshot() |
String |
getThumbnail() |
StringBuilder |
getUrlPrefix(boolean relativeUrl) |
boolean |
isExternal() |
void |
setBundle(org.osgi.framework.Bundle bundle) |
void |
setComponentName(ComponentName name) |
void |
setEntryPoint(String entryPoint) |
getAuthor, getGadgetSpec, getTitle, getTitleequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthor, getGadgetSpec, getTitle, getTitlepublic static final String HTTP
public static final String HTTP_SEPARATOR
public static final String URL_SEPARATOR
public String getName()
getName in interface GadgetDeclarationpublic String getLabel()
public boolean getDisabled()
getDisabled in interface GadgetDeclarationpublic String getIcon()
public final String getMountPoint()
public final String getCategory()
getCategory in interface GadgetDeclarationpublic final void setBundle(org.osgi.framework.Bundle bundle)
public final org.osgi.framework.Bundle getBundle()
public final void setComponentName(ComponentName name)
public final ComponentName getComponentName()
public final void setEntryPoint(String entryPoint)
public final String getEntryPoint()
public String getDirectory()
public String getIconUrl()
getIconUrl in interface GadgetDeclarationpublic StringBuilder getUrlPrefix(boolean relativeUrl)
public InputStream getResourceAsStream(String resourcePath) throws IOException
getResourceAsStream in interface GadgetDeclarationIOExceptionpublic URL getResource(String resourcePath)
getResource in interface GadgetDeclarationpublic URL getGadgetDefinition() throws MalformedURLException
getGadgetDefinition in interface GadgetDeclarationMalformedURLExceptionpublic String getPublicGadgetDefinition() throws MalformedURLException
GadgetDeclarationgetPublicGadgetDefinition in interface GadgetDeclarationgetPublicGadgetDefinition in class BaseGadgetDescriptorMalformedURLExceptionpublic String getDescription()
getDescription in interface GadgetDeclarationpublic boolean isExternal()
isExternal in interface GadgetDeclarationpublic String getThumbnail()
getThumbnail in interface GadgetDeclarationgetThumbnail in class BaseGadgetDescriptorpublic String getScreenshot()
getScreenshot in interface GadgetDeclarationgetScreenshot in class BaseGadgetDescriptorCopyright © 2012 Nuxeo SA. All Rights Reserved.