com.atlassian.gadgets.publisher.internal.rest
Class GadgetSpecResource
java.lang.Object
com.atlassian.gadgets.publisher.internal.rest.GadgetSpecResource
public final class GadgetSpecResource
- extends Object
Provides a REST endpoint for serving gadget specs provided by plugins.
Method Summary |
javax.ws.rs.core.Response |
getGadgetSpec(String pluginKey,
String gadgetSpecName)
Returns the full XML gadget spec corresponding to the resource specified
in the URI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GadgetSpecResource
public GadgetSpecResource(PublishedGadgetSpecWriter writer)
- Constructor.
- Parameters:
writer
- the store to retrieve gadget specs from
getGadgetSpec
public javax.ws.rs.core.Response getGadgetSpec(String pluginKey,
String gadgetSpecName)
- Returns the full XML gadget spec corresponding to the resource specified
in the URI.
- Parameters:
pluginKey
- the injected plugin key from the requestgadgetSpecName
- the injected string path to the gadget spec
- Returns:
- a
Response
carrying the gadget spec
Copyright © 2014 Atlassian. All Rights Reserved.