|
Oracle Communication and Mobility Server Java API Reference E14335-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.sdp.parlayx.presence.consumer.PresenceConsumerClient
public class PresenceConsumerClient
Constructor Summary | |
---|---|
PresenceConsumerClient()
|
|
PresenceConsumerClient(String assertedId)
This constructor registers the assertedIdentityHandler to insert the SOAP header. |
Method Summary | |
---|---|
void |
endPresenceNotification(String correlator)
This method implemented as describe in ParlayX 2.1 specs. |
oracle.webservices.transport.ClientTransport |
getClientTransport()
returns the transport context |
String |
getEndpoint()
|
boolean |
getMaintainSession()
|
String |
getPassword()
|
oracle.sdp.parlayx.presence.consumer.PresenceConsumer |
getPort()
used to access the JAX-RPC level APIs returns the interface of the port instance |
String |
getUsername()
|
org.csapi.schema.parlayx.presence.v2_3.PresenceAttribute[] |
getUserPresence(URI presentity,
org.csapi.schema.parlayx.presence.v2_3.PresenceAttributeType[] attributes)
This method will behave as described in the Parlay X 2.1 specs with the following Oracle Extension. In the return array, an OtherValue("ServiceAndDeviceNote") may appear as one of the elements. |
static void |
main(String[] args)
|
void |
setEndpoint(String endpoint)
|
void |
setMaintainSession(boolean maintainSession)
|
void |
setPassword(String password)
|
void |
setUsername(String username)
|
URI[] |
startPresenceNotification(URI presentity,
org.csapi.schema.parlayx.presence.v2_3.PresenceAttributeType[] attributes,
org.csapi.schema.parlayx.common.v2_1.SimpleReference reference,
org.csapi.schema.parlayx.common.v2_1.TimeMetric frequency,
org.csapi.schema.parlayx.common.v2_1.TimeMetric duration,
Integer count,
boolean checkImmediate)
This method implemented as describe in ParlayX 2.1 specs except frequency, duration and count is not implemented. |
void |
subscribePresence(URI presentity,
org.csapi.schema.parlayx.presence.v2_3.PresenceAttributeType[] attributes,
String application,
org.csapi.schema.parlayx.common.v2_1.SimpleReference reference)
This method will behave as described in the Parlay X 2.1 specs with the following Oracle Extension. To subscribe to multiple presentities Set presentity to this special URI "ocms:multiple_presentities@presence.ocms.oracle.com" Set application to comma delimited sip or pres addresses. Short form can be used if all presentities are in the same domain and all are sip URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PresenceConsumerClient() throws Exception
Exception
public PresenceConsumerClient(String assertedId) throws Exception
assertedId
- The asserted identity to be used to identify the user.
Exception
Method Detail |
---|
public static void main(String[] args)
args
- public void subscribePresence(URI presentity, org.csapi.schema.parlayx.presence.v2_3.PresenceAttributeType[] attributes, String application, org.csapi.schema.parlayx.common.v2_1.SimpleReference reference) throws RemoteException, org.csapi.schema.parlayx.common.v2_1.PolicyException, org.csapi.schema.parlayx.common.v2_1.ServiceException
presentity
- SIP or PRES address of the presentity.attributes
- Currently only support Activity and Other for raw PIDF.application
- Not used unless Oracle Extension is used. See above for Oracle specific.reference
- Reference to the PresenceNotification interface.
org.csapi.schema.parlayx.common.v2_1.ServiceException
org.csapi.schema.parlayx.common.v2_1.PolicyException
RemoteException
public org.csapi.schema.parlayx.presence.v2_3.PresenceAttribute[] getUserPresence(URI presentity, org.csapi.schema.parlayx.presence.v2_3.PresenceAttributeType[] attributes) throws RemoteException, org.csapi.schema.parlayx.common.v2_1.PolicyException, org.csapi.schema.parlayx.common.v2_1.ServiceException
presentity
- SIP or PRES address of the presentity.attributes
- Currently only support activity.
org.csapi.schema.parlayx.common.v2_1.ServiceException
org.csapi.schema.parlayx.common.v2_1.PolicyException
RemoteException
public URI[] startPresenceNotification(URI presentity, org.csapi.schema.parlayx.presence.v2_3.PresenceAttributeType[] attributes, org.csapi.schema.parlayx.common.v2_1.SimpleReference reference, org.csapi.schema.parlayx.common.v2_1.TimeMetric frequency, org.csapi.schema.parlayx.common.v2_1.TimeMetric duration, Integer count, boolean checkImmediate) throws RemoteException, org.csapi.schema.parlayx.common.v2_1.ServiceException, org.csapi.schema.parlayx.common.v2_1.PolicyException
presentity
- The presentity or group whose attributes the
watcher wants to monitor.attributes
- Ignored. It will return all the attributes subscribed via subscribePresence.reference
- URL to the notification interface.frequency
- Not used.duration
- Not used.count
- Not used.checkImmediate
- Whether to check status immediately after
establishing notification.
org.csapi.schema.parlayx.common.v2_1.ServiceException
org.csapi.schema.parlayx.common.v2_1.PolicyException
RemoteException
public void endPresenceNotification(String correlator) throws RemoteException, org.csapi.schema.parlayx.common.v2_1.PolicyException, org.csapi.schema.parlayx.common.v2_1.ServiceException
correlator
- Correlator passed in startPresenceNotification.
org.csapi.schema.parlayx.common.v2_1.PolicyException
org.csapi.schema.parlayx.common.v2_1.ServiceException
RemoteException
public oracle.sdp.parlayx.presence.consumer.PresenceConsumer getPort()
public String getEndpoint()
public void setEndpoint(String endpoint)
public String getPassword()
public void setPassword(String password)
public String getUsername()
public void setUsername(String username)
public void setMaintainSession(boolean maintainSession)
public boolean getMaintainSession()
public oracle.webservices.transport.ClientTransport getClientTransport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |