public class WattDepotApplication
extends org.restlet.Application
Constructor and Description |
---|
WattDepotApplication()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.restlet.Restlet |
createInboundRoot()
Creates a root Router to dispatch call to server resources.
|
WebSession |
createWebSession(String username,
String password)
Creates a new WebSession for the given user with their password.
|
WattDepotComponent |
getComponent() |
WattDepotPersistence |
getDepot() |
WebSession |
getWebSession(String id) |
WebSession |
removeWebSession(String id)
Removes the WebSession from the application.
|
void |
setComponent(WattDepotComponent component) |
void |
setDepot(WattDepotPersistence depot) |
createOutboundRoot, getConnectorService, getConnegService, getConverterService, getCurrent, getDecoderService, getEncoderService, getInboundRoot, getMetadataService, getOutboundRoot, getRangeService, getRole, getRoles, getServices, getStatusService, getTaskService, getTunnelService, handle, setClientRoot, setConnectorService, setConnegService, setContext, setConverterService, setCurrent, setDecoderService, setEncoderService, setInboundRoot, setInboundRoot, setMetadataService, setOutboundRoot, setOutboundRoot, setRangeService, setRoles, setStatusService, setTaskService, setTunnelService, start, stop
public WebSession getWebSession(String id)
id
- The WebSession id.public WebSession createWebSession(String username, String password)
username
- The unique id for the user.password
- Their password.public WebSession removeWebSession(String id)
id
- The id of the session.public WattDepotPersistence getDepot()
public void setDepot(WattDepotPersistence depot)
depot
- the depot to setpublic WattDepotComponent getComponent()
public void setComponent(WattDepotComponent component)
component
- the component to setpublic org.restlet.Restlet createInboundRoot()
createInboundRoot
in class org.restlet.Application
Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.