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
@Deprecated
public URI build(GadgetState gadget,
View view,
GadgetRequestContext gadgetRequestContext)
- Deprecated. as of 2.0, use
build(GadgetState, ModuleId, View, GadgetRequestContext)
- Returns the URL to the rendered gadget.
- Specified by:
build
in interface RenderedGadgetUriBuilder
- Parameters:
gadget
- gadget used to insert the gadget's spec URLview
- the view to render the gadget ingadgetRequestContext
- context for this request
- Returns:
- URL to the rendered gadget
build
public final URI build(GadgetState gadget,
ModuleId moduleId,
View view,
GadgetRequestContext gadgetRequestContext)
- Description copied from interface:
RenderedGadgetUriBuilder
- Returns the URL to the rendered gadget.
- Specified by:
build
in interface RenderedGadgetUriBuilder
- Parameters:
gadget
- gadget used to insert the gadget's spec URLmoduleId
- the moduleId to use in the URL. Should be unique for the HTML page that the gadget
will be rendered in.view
- the view to render the gadget ingadgetRequestContext
- context for this request
- Returns:
- URL to the rendered gadget
Copyright © 2014 Atlassian. All Rights Reserved.