REST support has been provided so that users can access Cafe artifacts over http without having to write additional server side code.
Communication resource is the entry point for all the different
types of communications like Call
, Conference
Can be acessed using "/resource" context path. This resource is a
JSR311 based rest resource.
Calls REST resource that maps all the calls in the application. http://host:port/{contextroot}/resources/calls/{server/client}
Used to retrieve all the calls that are in progress. http://host:port/{contextroot}/resources/calls/list
available response representations:
Call resource maps one call in the system. It can be used to create or modify a call or retrived information corresponding to a call. http://host:port/{contextroot}/resources/calls/{server/client}/call/{callid}
parameter | value | description |
---|---|---|
callid | callid |
Retrieves the current status of the call if the callid is valid and belongs to this application. http://host:port/{contextroot}/resources/calls/{server/client}/call/{callid}
available response representations:
Creates a call if the call id does not exist, or modifies the call if it exists. http://host:port/{contextroot}/resources/calls/{server/client}/call/{callid}
parameter | value | description |
---|---|---|
from | caller | |
to | callee. |
available response representations:
Creates a call if the call id does not exist, or modifies the call if it exists. http://host:port/{contextroot}/resources/calls/{server/client}/call/{callid}
acceptable request representations:
available response representations:
Ends a call. http://host:port/{contextroot}/resources/calls/{server/client}/call/{callid}
parameter | value | description |
---|---|---|
Callid | The deleted call id. |
available response representations:
Creates a call, used along with POST method. http://host:port/{contextroot}/resources/calls/{server/client}/createcall
acceptable request representations:
available response representations:
Call resource maps one call in the system. It can be used to create or modify a call or retrived information corresponding to a call. http://host:port/{contextroot}/resources/calls/{server/client}/call/{callid}
Conferences REST resource that maps all the conferences in the application. http://host:port/resources/{contextroot}/conferences/{server/client}
Used to retrieve all the calls that are in progress. http://host:port/{contextroot}/resources/conferences/list
available response representations:
Conference resource maps one conference in the system. It can be used to create or modify a conference or retrived information corresponding to a conference. http://host:port/{contextroot}/resources/conferences/{server/client}/conference/{conferenceid}
parameter | value | description |
---|---|---|
conferenceid | conference id |
Retrieves the current status of the conference if the id is valid and belongs to this application. http://host:port/{contextroot}/resources/conferences/{server/client}/conference/{conferenceid}
available response representations:
Creates a conference if the id does not exist, or modifies the call if it exists. http://host:port/{contextroot}/resources/conferences/{server/client}/conference/{conferenceid}
acceptable request representations:
available response representations:
Ends a conference. http://host:port/{contextroot}/resources/conferences/{server/client}/conference/{conferenceid}
parameter | value | description |
---|---|---|
Conference id | The deleted Conference id. |
available response representations:
Should be used to create a conference with a server generated conference id. The create with the PUT method should be used when the client wants to supply the call id.
acceptable request representations:
available response representations:
parameter | value | description |
---|---|---|
conferenceid | conference id |
Adds a participant from the conference. Should be POST and not PUT because we cannot gurantee idempotency with PUT. We could use PUT if we model Participant as a resource.
acceptable request representations:
available response representations:
parameter | value | description |
---|---|---|
participantid | ||
conferenceid | conference id |
Adds a participant from the conference. Should be POST and not PUT because we cannot gurantee idempotency with PUT. We could use PUT if we model Participant as a resource.
available response representations:
parameter | value | description |
---|---|---|
conferenceid | conference id. |
Removes a participant from the conference.
acceptable request representations:
available response representations:
parameter | value | description |
---|---|---|
participantid | ||
conferenceid | conference id. |
Removes a participant from the conference.
available response representations:
Conference resource maps one conference in the system. It can be used to create or modify a conference or retrived information corresponding to a conference. http://host:port/{contextroot}/resources/conferences/{server/client}/conference/{conferenceid}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<call>
<from>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</from>
<to>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</to>
<id>samplecallid</id>
<status>INACTIVE</status>
</call>
</cafeRestResponse>
</cafeRestMessage>
Status of the call after completion.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<call>
<from>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</from>
<to>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</to>
<id>samplecallid</id>
<status>INACTIVE</status>
</call>
</cafeRestResponse>
</cafeRestMessage>
Status of the call after completion.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<call>
<from>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</from>
<to>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</to>
<id>samplecallid</id>
<status>INACTIVE</status>
</call>
</cafeRestResponse>
</cafeRestMessage>
Status of the call after completion.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestRequest>
<call>
<from>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</from>
<to>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</to>
<id></id>
<status></status>
</call>
</cafeRestRequest>
</cafeRestMessage>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestRequest>
<call>
<from>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</from>
<to>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</to>
<id></id>
<status></status>
</call>
</cafeRestRequest>
</cafeRestMessage>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<call>
<from>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</from>
<to>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</to>
<id>samplecallid</id>
<status>INACTIVE</status>
</call>
</cafeRestResponse>
</cafeRestMessage>
Status of the call after completion.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<conference>
<originator>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</originator>
<participant>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</participant>
<participant>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</participant>
<id>sampleconferenceid</id>
<status>ACTIVE</status>
</conference>
</cafeRestResponse>
</cafeRestMessage>
Status of the call after completion.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<conference>
<originator>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</originator>
<participant>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</participant>
<participant>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</participant>
<id></id>
<status></status>
</conference>
</cafeRestResponse>
</cafeRestMessage>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<conference>
<originator>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</originator>
<participant>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</participant>
<participant>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</participant>
<id></id>
<status></status>
</conference>
</cafeRestResponse>
</cafeRestMessage>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<conference>
<originator>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</originator>
<participant>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</participant>
<participant>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</participant>
<id>sampleconferenceid</id>
<status>ACTIVE</status>
</conference>
</cafeRestResponse>
</cafeRestMessage>
Status of the call after completion.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<conference>
<originator>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</originator>
<participant>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</participant>
<participant>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</participant>
<id></id>
<status></status>
</conference>
</cafeRestResponse>
</cafeRestMessage>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<conference>
<originator>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</originator>
<participant>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</participant>
<participant>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</participant>
<id></id>
<status></status>
</conference>
</cafeRestResponse>
</cafeRestMessage>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cafeRestMessage xmlns="http://sailfin-cafe.dev.java.net/schema/cafe-rest-types">
<cafeRestResponse>
<conference>
<originator>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</originator>
<participant>
<name>alice@sailfin-cafe.org</name>
<nickname>Alice</nickname>
<status>ACTIVE</status>
</participant>
<participant>
<name>bob@sailfin-cafe.org</name>
<nickname>Bob</nickname>
<status>ACTIVE</status>
</participant>
<id>sampleconferenceid</id>
<status>ACTIVE</status>
</conference>
</cafeRestResponse>
</cafeRestMessage>