com.atlassian.gadgets.embedded.internal
Class GadgetUrlBuilder
java.lang.Object
com.atlassian.gadgets.util.AbstractUrlBuilder
com.atlassian.gadgets.embedded.internal.GadgetUrlBuilder
- All Implemented Interfaces:
- UrlBuilder, RenderedGadgetUriBuilder
public class GadgetUrlBuilder
- extends AbstractUrlBuilder
- implements RenderedGadgetUriBuilder
Builds URLs to the rendered gadget.
|
Constructor Summary |
GadgetUrlBuilder(com.atlassian.sal.api.ApplicationProperties applicationProperties,
com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
SecurityTokenFactory securityTokenFactory,
GadgetSpecFactory gadgetSpecFactory)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GadgetUrlBuilder
public GadgetUrlBuilder(com.atlassian.sal.api.ApplicationProperties applicationProperties,
com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
SecurityTokenFactory securityTokenFactory,
GadgetSpecFactory gadgetSpecFactory)
- Constructor.
- Parameters:
applicationProperties - the ApplicationProperties implementation to usewebResourceManager - the WebResourceManager implementation to usesecurityTokenFactory - the SecurityTokenFactory implementation to usegadgetSpecFactory - the GadgetSpecFactory implementation to use
build
public final URI build(GadgetState gadget,
View view,
GadgetRequestContext gadgetRequestContext)
- Returns the URL to the rendered gadget.
- Specified by:
build in interface RenderedGadgetUriBuilder
- Parameters:
gadget - the gadget used to insert the gadget's spec URLview - the view to render the gadget ingadgetRequestContext - the context associated with the current gadget request
- Returns:
- URL to the rendered gadget
Copyright © 2010 Atlassian. All Rights Reserved.