|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Uniform
org.restlet.Restlet
org.restlet.Application
org.hackystat.dailyprojectdata.server.Server
public class Server
Sets up the HTTP Server process and dispatching to the associated resources.
Constructor Summary | |
---|---|
Server()
|
Method Summary | |
---|---|
org.restlet.Restlet |
createRoot()
Dispatch to the specific DailyProjectData resource based upon the URI. |
FrontSideCache |
getFrontSideCache()
Returns the front side cache for this server. |
java.lang.String |
getHostName()
Returns the host name associated with this server. |
java.util.logging.Logger |
getLogger()
Returns the logger for this service. |
ServerProperties |
getServerProperties()
Returns the ServerProperties instance associated with this server. |
static java.lang.String |
getVersion()
Returns the version associated with this Package, if available from the jar file manifest. |
static void |
main(java.lang.String[] args)
Starts up the web service. |
static Server |
newInstance()
Creates a new instance of a DailyProjectData HTTP server, listening on the supplied port. |
static Server |
newInstance(ServerProperties properties)
Creates a new instance of a DailyProjectData HTTP server, listening on the supplied port. |
static Server |
newTestInstance()
Creates a new instance of a DailyProjectData HTTP server suitable for unit testing. |
Methods inherited from class org.restlet.Application |
---|
getAuthor, getConnectorService, getConverterService, getCurrent, getDecoderService, getDescription, getMetadataService, getName, getOwner, getRangeService, getRoot, getStatusService, getTaskService, getTunnelService, handle, setAuthor, setConnectorService, setConverterService, setCurrent, setDecoderService, setDescription, setMetadataService, setName, setOwner, setRangeService, setRoot, setStatusService, setTaskService, setTunnelService, start, stop |
Methods inherited from class org.restlet.Restlet |
---|
getApplication, getContext, init, 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 |
Constructor Detail |
---|
public Server()
Method Detail |
---|
public static Server newInstance() throws java.lang.Exception
java.lang.Exception
- If problems occur starting up this server.public static Server newTestInstance() throws java.lang.Exception
java.lang.Exception
- If problems occur starting up this server.public static Server newInstance(ServerProperties properties) throws java.lang.Exception
properties
- The ServerProperties instance used to initialize this server.
java.lang.Exception
- If problems occur starting up this server.public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Ignored.
java.lang.Exception
- if problems occur.public org.restlet.Restlet createRoot()
createRoot
in class org.restlet.Application
public static java.lang.String getVersion()
public java.lang.String getHostName()
public ServerProperties getServerProperties()
public java.util.logging.Logger getLogger()
getLogger
in class org.restlet.Restlet
public FrontSideCache getFrontSideCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |