Examples of WookieServerConnection


Examples of org.apache.wookie.connector.framework.WookieServerConnection

  private static final String TEST_SHARED_DATA_KEY = "myshareddata";
  static WookieServerConnection conn;
 
  @BeforeClass
  public static void setup() throws WookieConnectorException {
    conn = new WookieServerConnection(TEST_URL, TEST_API_KEY, TEST_SHARED_DATA_KEY)
    assertNotNull("Connection object has not been set up correctly", conn);
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.widgets.WookieServerConnection

   * @param forceNew to indicate if always a new connection should be made.
   * @return
   */
  public static WookieServerConnection getWookieServerConnection(boolean forceNew) {
    if (wookieServerConnection == null || forceNew) {
      wookieServerConnection = new WookieServerConnection();
    }
    return wookieServerConnection;
  }
View Full Code Here

Examples of uk.ac.osswatch.simal.wicket.widgets.WookieServerConnection

  /**
   * Add Wookie widgets to the page if the server is available.
   */
  private void populateWookiePanel() {

    WookieServerConnection wookieServerConnection = UserApplication
        .getWookieServerConnection(true);
   
    // Trick to (re)connect to Wookie server in case it has
    // been (re)started after Simal's initial connection setup.
    if(!wookieServerConnection.isAvailable()) {
      wookieServerConnection.initialise();
    }

    // Show all widgets in a gallery
    try {
      add(new WookieWidgetGalleryPanel("widgetGallery"));
    } catch (SimalException e) {
      UserReportableException ure = new UserReportableException(
          "Unable to retrieve widgets from Woookie for Gallery",
          ToolsPage.class, e);
      setResponsePage(new ErrorReportPage(ure));
    }
    // all instantiated widgets
    try {
      RepeatingView repeating = new RepeatingView("instantiatedWidgets");
      Iterator<Widget> itr = wookieServerConnection.getAvailableWidgets()
          .values().iterator();
      Widget widget;
      while (itr.hasNext()) {
        widget = itr.next();
        Iterator<WidgetInstance> instances = widget.getInstances().iterator();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.