Class ManageDistributionsDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener, RootPaneContainer, WindowConstants, HyperlinkActivatedListener

public class ManageDistributionsDialog extends JDialog implements ActionListener, ListSelectionListener, HyperlinkActivatedListener
Dialog box for displaying and modifying CloudFront distributions.

The first time a bucket is selected its logging status is retrieved from S3 and the details are displayed, as well as being cached so further lookups aren't necessary. The logging status is modified by choosing/changing the target log bucket.

Author:
James Murty
See Also:
  • Constructor Details

  • Method Details

    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      Specified by:
      valueChanged in interface ListSelectionListener
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • showDialog

      public static void showDialog(Frame ownerFrame, CloudFrontService cloudFrontService, String[] bucketNames, HyperlinkActivatedListener hyperlinkListener)
      Dialog box for displaying and modifying CloudFront distributions.
      Parameters:
      ownerFrame - the frame that will own the dialog.
      cloudFrontService - a CloudFrontService that will be used to query and update distributions. This service must be initialised with the necessary AWS credentials to perform the API operations.
      hyperlinkListener - the listener that will act on any hyperlink events triggered by the user clicking on HTTP links.
    • followHyperlink

      public void followHyperlink(URL url, String target)
      Description copied from interface: HyperlinkActivatedListener
      This method is triggered when an HTML link is activated, such as by an HTML link in a JHtmlLabel - any class that implements this listener should do something useful with the triggered hyperlink, preferrably opening it in a web browser.
      Specified by:
      followHyperlink in interface HyperlinkActivatedListener
      Parameters:
      url - the url contained in the href.
      target - the target attribute of the href, may be null if the attribute is not present.
    • main

      public static void main(String[] args) throws Exception
      TODO: Remove once testing is complete.
      Parameters:
      args -
      Throws:
      Exception