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 |
|---|---|
Filter |
createInboundFilter(Context context)
Create the filter that should be invoked for incoming calls.
|
Filter |
createOutboundFilter(Context context)
Create the filter that should be invoked for outgoing calls.
|
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 Filter createInboundFilter(Context context)
context - The current context.public Filter createOutboundFilter(Context context)
context - The current context.Context.getClientDispatcher()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.