Regain 2.1.0-STABLE API

net.sf.regain.ui.desktop
Class DesktopToolkit

java.lang.Object
  extended by net.sf.regain.ui.desktop.DesktopToolkit
All Implemented Interfaces:
DesktopConstants

public class DesktopToolkit
extends Object
implements DesktopConstants

A toolkit for the desktop search containing helper methods.

Author:
Til Schneider, www.murfman.de

Field Summary
private static DesktopConfig mConfig
          The desktop configuration.
private static ServerSocket mCurrentSocket
          The current webserver socket.
private static org.apache.log4j.Logger mLog
          The logger for this class
private static simple.http.connect.Connection mSimplewebConnection
          The simpleweb connection
 
Fields inherited from interface net.sf.regain.ui.desktop.DesktopConstants
AUTH_PROPS_FILE, CONFIG_DIR, CRAWLER_CONFIG_FILE, DEFAULT_CONFIG_DIR, DEFAULT_CRAWLER_CONFIG_FILE, DEFAULT_DESKTOP_CONFIG_FILE, DEFAULT_INTERVAL, DEFAULT_PORT, DESKTOP_CONFIG_FILE, INDEX_DIR, LASTUPDATE_FILE, LOG_DIR, NEEDSUPDATE_FILE, TAGLIB_DIR
 
Constructor Summary
DesktopToolkit()
           
 
Method Summary
static void checkWebserver()
          Checks whether the webserver is running on the right port.
static DesktopConfig getDesktopConfig()
          Gets the desktop configuration.
static void openPageInBrowser(String page)
          Opens a page in the browser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mLog

private static org.apache.log4j.Logger mLog
The logger for this class


mConfig

private static DesktopConfig mConfig
The desktop configuration.


mSimplewebConnection

private static simple.http.connect.Connection mSimplewebConnection
The simpleweb connection


mCurrentSocket

private static ServerSocket mCurrentSocket
The current webserver socket.

Constructor Detail

DesktopToolkit

public DesktopToolkit()
Method Detail

getDesktopConfig

public static DesktopConfig getDesktopConfig()
Gets the desktop configuration.

Returns:
The desktop configuration.

openPageInBrowser

public static void openPageInBrowser(String page)
Opens a page in the browser.

Parameters:
page - The page to open.

checkWebserver

public static void checkWebserver()
                           throws RegainException
Checks whether the webserver is running on the right port.

Throws:
RegainException - If creating or remapping the webserver failed.

Regain 2.1.0-STABLE API

Regain 2.1.0-STABLE, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info