com.sibvisions.rad.server.http.rest
Class RESTAdapter

java.lang.Object
  extended by org.restlet.Restlet
      extended by org.restlet.Application
          extended by com.sibvisions.rad.server.http.rest.RESTAdapter
All Implemented Interfaces:
org.restlet.Uniform

public class RESTAdapter
extends org.restlet.Application

The RESTAdapter class enables access to application life-cycle objects of JVx.


Field Summary
static java.lang.String PARAM_ACTION_NAME
          the name of the "action" parameter.
static java.lang.String PARAM_APP_NAME
          the name of the "application name" parameter.
static java.lang.String PARAM_LCO_CLASS
          the name of the "lifecycle class" parameter.
static java.lang.String PARAM_OBJECT_NAME
          the name of the "object" parameter.
static java.lang.String PARAM_PK
          the name of the "primary key" parameter.
 
Constructor Summary
RESTAdapter()
           
 
Method Summary
 org.restlet.Restlet createInboundRoot()
          Creates a root Restlet that will receive all incoming calls.
protected  java.lang.ClassLoader getClassLoader(ISession pSession)
          Gets the class loader for the given session.
 
Methods inherited from class org.restlet.Application
createOutboundRoot, getConnectorService, getConnegService, getConverterService, getCurrent, getDecoderService, getEncoderService, getInboundRoot, getMetadataService, getOutboundRoot, getRangeService, getRole, getRoles, getServices, getStatusService, getTaskService, getTunnelService, handle, isDebugging, setConnectorService, setConnegService, setContext, setConverterService, setCurrent, setDebugging, setDecoderService, setEncoderService, setInboundRoot, setInboundRoot, setMetadataService, setOutboundRoot, setOutboundRoot, setRangeService, setRoles, setStatusService, setTaskService, setTunnelService, start, stop
 
Methods inherited from class org.restlet.Restlet
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setDescription, setFinderClass, setName, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_APP_NAME

public static final java.lang.String PARAM_APP_NAME
the name of the "application name" parameter.

See Also:
Constant Field Values

PARAM_LCO_CLASS

public static final java.lang.String PARAM_LCO_CLASS
the name of the "lifecycle class" parameter.

See Also:
Constant Field Values

PARAM_OBJECT_NAME

public static final java.lang.String PARAM_OBJECT_NAME
the name of the "object" parameter.

See Also:
Constant Field Values

PARAM_ACTION_NAME

public static final java.lang.String PARAM_ACTION_NAME
the name of the "action" parameter.

See Also:
Constant Field Values

PARAM_PK

public static final java.lang.String PARAM_PK
the name of the "primary key" parameter.

See Also:
Constant Field Values
Constructor Detail

RESTAdapter

public RESTAdapter()
Method Detail

createInboundRoot

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

Overrides:
createInboundRoot in class org.restlet.Application
Returns:
the inbound root restlet

getClassLoader

protected java.lang.ClassLoader getClassLoader(ISession pSession)
Gets the class loader for the given session.

Parameters:
pSession - the session
Returns:
the class loader or null if there's no specific class loader


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.