public interface LocalGadgetSpecProvider extends GadgetSpecProvider
GadgetSpecProvider that serve gadget specs that are intended to be rendered by the same server that they
are published from should implement this interface in order to eliminate the need for the renderer to make a loopback
HTTP request to fetch the gadget spec.| Modifier and Type | Method and Description |
|---|---|
Date |
getLastModified(URI gadgetSpecUri)
Return the date the gadget spec was last modified.
|
void |
writeGadgetSpecTo(URI gadgetSpecUri,
OutputStream output)
Writes the gadget spec found at the specified URI, to the specified
OutputStream. |
contains, entriesvoid writeGadgetSpecTo(URI gadgetSpecUri, OutputStream output) throws GadgetSpecUriNotAllowedException, IOException
OutputStream. It is assumed that the
caller has already checked that the URI is provided by this provider by calling the GadgetSpecProvider.contains(java.net.URI) method. If not, this method will throw a com.atlassian.gadgets.GadgetSpecUriNotAllowedException.gadgetSpecUri - URI of the gadget spec to write. Must not be null or a NullPointerException
will be thrown.output - the OutputStream to write the gadget spec XML to. Must not be null, or a
NullPointerException will be thrown.GadgetSpecUriNotAllowedException - if the provided gadget spec URI cannot be written by this providerIOException - if an error occurs in I/O processingNullPointerException - if any argument is nullCopyright © 2024 Atlassian. All rights reserved.