org.opentox
Class OpenToxApplication

java.lang.Object
  extended by org.restlet.Uniform
      extended by org.restlet.Restlet
          extended by org.restlet.Application
              extended by org.opentox.OpenToxApplication

public class OpenToxApplication
extends org.restlet.Application

Initial Implementation of the OpenTox Restful WebServices.
Copyright © 2009, OpenTox http://www.opentox.org/ http://opentox.ntua.gr:3000/

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Version:
1.3.3 (Last update: Dec 20, 2009)
Author:
OpenTox - http://www.opentox.org/, Sopasakis Pantelis, Sarimveis Harry

Field Summary
static InHouseDB dbcon
          Connection to the Models' database.
static java.util.concurrent.ExecutorService executor
           
static OpenToxApplication INSTANCE
           
private static OpenToxApplication instanceOfThis
           
static java.util.logging.Logger opentoxLogger
          Server logs.
private static long serialVersionUID
           
private static int THREADS
           
 
Constructor Summary
private OpenToxApplication()
          Constructor.
 
Method Summary
 org.restlet.Restlet createRoot()
          Creates a root Restlet that will receive all incoming calls.
private static OpenToxApplication getInstance()
           
 
Methods inherited from class org.restlet.Application
findRole, getAuthor, getConnectorService, getConverterService, getCurrent, getDecoderService, getDescription, getFinderClass, getMetadataService, getName, getOwner, getRangeService, getRoles, getRoot, getService, getServices, getStatusService, getTaskService, getTunnelService, handle, setAuthor, setConnectorService, setConverterService, setCurrent, setDecoderService, setDescription, setFinderClass, setMetadataService, setName, setOwner, setRangeService, setRoles, setRoot, setRoot, setService, setServices, setStatusService, setTaskService, setTunnelService, start, stop
 
Methods inherited from class org.restlet.Restlet
getApplication, getContext, getLogger, isStarted, isStopped, setContext
 
Methods inherited from class org.restlet.Uniform
delete, delete, get, get, handle, head, head, options, options, post, post, put, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

dbcon

public static InHouseDB dbcon
Connection to the Models' database.


opentoxLogger

public static java.util.logging.Logger opentoxLogger
Server logs.


executor

public static java.util.concurrent.ExecutorService executor

THREADS

private static final int THREADS
See Also:
Constant Field Values

instanceOfThis

private static OpenToxApplication instanceOfThis

INSTANCE

public static final OpenToxApplication INSTANCE
Constructor Detail

OpenToxApplication

private OpenToxApplication()
                    throws java.io.IOException
Constructor.

Throws:
java.io.IOException
Method Detail

getInstance

private static OpenToxApplication getInstance()

createRoot

public final org.restlet.Restlet createRoot()
Creates a root Restlet that will receive all incoming calls.

Brief list of services:

Overrides:
createRoot in class org.restlet.Application