|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CourierService
CourierService is the Interface for a Sakai service which can be used to push messages from the Sakai server components to the user interface in the browser.
It is used mostly to cause a tool in a particular portal instance to be refreshed to respond to a change noticed at the server.
An Address identifies a particular client's window: it merges the Usage session, the window's portal page location, and perhaps the tool id (for floating tool windows).
A Delivery object captures the Address, the HTML Element Id involved, and any other details of a particular type of delivery.
| Field Summary | |
|---|---|
static String |
SERVICE_NAME
This string can be used to find the service in the service manager. |
| Method Summary | |
|---|---|
void |
clear(String address)
Clear any pending delivery requests to this session client window. |
void |
clear(String address,
String elementId)
Clear any pending delivery requests to the particular client window for this element. |
void |
deliver(Delivery delivery)
Queue up a delivery for the client window identified in the Delivery object. |
List |
getDeliveries(String address)
Access and de-queue the Deliveries queued up for a particular session client window. |
List<DeliveryProvider> |
getDeliveryProviders()
Access a list of DeliveryProviders registered with the CourierService. |
boolean |
hasDeliveries(String address)
Check to see if there are any deliveries queued up for a particular session client window. |
void |
registerDeliveryProvider(DeliveryProvider provider)
Register a DeliveryProvider with the CourierService. |
| Field Detail |
|---|
static final String SERVICE_NAME
| Method Detail |
|---|
void deliver(Delivery delivery)
delivery - The Delivery (or extension) object to deliver.
void clear(String address,
String elementId)
address - The address of the client window.elementId - The id of the html element.void clear(String address)
address - The address of client window.List getDeliveries(String address)
address - The address of client window.
boolean hasDeliveries(String address)
address - The address of the client window.
List<DeliveryProvider> getDeliveryProviders()
void registerDeliveryProvider(DeliveryProvider provider)
provider -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||