public abstract class Service
extends java.lang.Object
setEnabled(boolean) method.| Constructor and Description | 
|---|
Service()
Constructor. 
 | 
Service(boolean enabled)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Context | 
getContext()
Returns the context. 
 | 
boolean | 
isEnabled()
Indicates if the service should be enabled. 
 | 
boolean | 
isStarted()
Indicates if the service is started. 
 | 
boolean | 
isStopped()
Indicates if the service is stopped. 
 | 
void | 
setContext(Context context)
Sets the context. 
 | 
void | 
setEnabled(boolean enabled)
Indicates if the service should be enabled. 
 | 
void | 
start()
Starts the Restlet. 
 | 
void | 
stop()
Stops the Restlet. 
 | 
public Service()
public Service(boolean enabled)
enabled - True if the service has been enabled.public Context getContext()
public boolean isEnabled()
public boolean isStarted()
public boolean isStopped()
public void setContext(Context context)
context - The context.public void setEnabled(boolean enabled)
enabled - True if the service should be enabled.public void start()
           throws java.lang.Exception
java.lang.Exceptionpublic void stop()
          throws java.lang.Exception
java.lang.ExceptionCopyright © 2005-2024 Restlet.