com.atlassian.gadgets.publisher.internal.rest
Class GadgetSpecResource

java.lang.Object
  extended by com.atlassian.gadgets.publisher.internal.rest.GadgetSpecResource

public final class GadgetSpecResource
extends Object

Provides a REST endpoint for serving gadget specs provided by plugins.


Constructor Summary
GadgetSpecResource(PublishedGadgetSpecWriter writer)
          Constructor.
 
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
 

Constructor Detail

GadgetSpecResource

public GadgetSpecResource(PublishedGadgetSpecWriter writer)
Constructor.

Parameters:
writer - the store to retrieve gadget specs from
Method Detail

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 request
gadgetSpecName - the injected string path to the gadget spec
Returns:
a Response carrying the gadget spec


Copyright © 2010 Atlassian. All Rights Reserved.