|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that an ICE Client should expect from a client library that communicates using ICE 1.1 to an ICE Server.
Method Summary |
Type | Method |
---|---|
java.io.Reader |
createGetCatalogPayload(java.lang.String szPayloadId,
java.lang.String szRequestId)
Creates the get-catalog request payload as a reader |
java.io.Reader |
createGetPackagePayload(java.lang.String szPayloadId,
java.lang.String szRequestId,
java.lang.String szSubscriptionId,
java.lang.String szCurrState)
Creates the get-package request payload as a reader |
java.io.Reader |
createSubscribePayload(java.lang.String szPayloadId,
java.lang.String szRequestId,
Ice_offer offer)
Creates the subscribe (ice-offer) request payload as a reader |
java.io.Reader |
createUnsubscribePayload(java.lang.String szPayloadId,
java.lang.String szRequestId,
java.lang.String szSubscriptionId)
Creates the cancel-subscription request payload as a reader |
Ice_payload |
getCatalog(java.lang.String payload_id,
java.lang.String request_id)
Asks for the catalog from the specified server. |
Ice_payload |
getEvents(java.lang.String payload_id,
java.lang.String request_id,
java.lang.String format,
ISODatetime start,
ISODatetime stop,
java.lang.String subscription_id)
get events for a specified subscription within certain timeframe |
java.lang.String |
getId()
Each client should have a unique Identifier to use to set the sender-id attribute in an ice-sender. |
int |
getInterval()
Each client should have the default value for its preference for PUSH delivery interval |
java.lang.String |
getName()
Each client should have a name that can be used set the sender-name attribute in an ice-sender |
Ice_payload |
getPackage(java.lang.String payload_id,
java.lang.String request_id,
java.lang.String subscription_id,
java.lang.String current_state)
PULL package ( content ) for an existing subscription |
Ice_payload |
getStatus(java.lang.String payload_id,
java.lang.String request_id,
java.lang.String subscription_id)
get status for a specified subscription |
java.lang.String |
getUri()
Each client should be able to tell the server which URL to PUSH the content to if the content that is subscribed to supports the PUSH model of delivery. |
Ice_payload |
subscribe(java.lang.String payload_id,
java.lang.String request_id,
Ice_offer ice_offer)
Subscribe to the offer from the catalog provided by the server and establish the business term and delivery policies |
Ice_payload |
unsubscribe(java.lang.String payload_id,
java.lang.String request_id,
java.lang.String szSubscriptionId)
Cancel subscription |
Method Detail |
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getUri()
public int getInterval()
public java.io.Reader createGetCatalogPayload(java.lang.String szPayloadId, java.lang.String szRequestId)
public java.io.Reader createSubscribePayload(java.lang.String szPayloadId, java.lang.String szRequestId, Ice_offer offer)
public java.io.Reader createUnsubscribePayload(java.lang.String szPayloadId, java.lang.String szRequestId, java.lang.String szSubscriptionId)
public java.io.Reader createGetPackagePayload(java.lang.String szPayloadId, java.lang.String szRequestId, java.lang.String szSubscriptionId, java.lang.String szCurrState)
public Ice_payload getCatalog(java.lang.String payload_id, java.lang.String request_id) throws OSSException
payload_id
- The sender specifies the unique id for the "get-catalog"
request payloadrequest_id
- The sender spefified the unique id for the individual
request inside the GETCATALOG request payload ( mutiple
request supported in ICE1.1)public Ice_payload subscribe(java.lang.String payload_id, java.lang.String request_id, Ice_offer ice_offer) throws OSSException
payload_id
- The sender specifies the unique id for the "subscribe"
request payloadrequest_id
- The sender spefified the unique id for the individual
request inside the "subscribe" request payload ( mutiple
request supported in ICE1.1)ice_offer
- The offer list which the subscriber is about to
subscribe to.public Ice_payload unsubscribe(java.lang.String payload_id, java.lang.String request_id, java.lang.String szSubscriptionId) throws OSSException
payload_id
- The payload id generated by the local client system.
Must be unique across all the payloads sent out by this
client application.request_id
- The request id to identify the current "cancel-
subscription" request which is generated by the local
client system and should be unique within the same ice
payload across all the requests.szSubscriptionId
- The unique id known to both the client ( as the
subscriber ) and the syndication server, which is
assigned to the client by the server during the
subscribing timepublic Ice_payload getPackage(java.lang.String payload_id, java.lang.String request_id, java.lang.String subscription_id, java.lang.String current_state) throws OSSException
payload_id
- The payload id generated by the local client system.
Must be unique across all the payloads sent out by this
client application.request_id
- The request id to identify the current "get-package"
request which is generated by the local client system
and should be unique within the same ice payload across
all the requests.szSubscriptionId
- The unique id known to both the client ( as the
subscriber ) and the syndication server, which is
assigned to the client by the server during the
subscribing time.public Ice_payload getStatus(java.lang.String payload_id, java.lang.String request_id, java.lang.String subscription_id) throws OSSException
payload_id
- The payload id generated by the local client system.
Must be unique across all the payloads sent out by this
client application.request_id
- The request id to identify the current "get-status"
request which is generated by the local client system
and should be unique within the same ice payload across
all the requests.szSubscriptionId
- The unique id known to both the client ( as the
subscriber ) and the syndication server, which is
assigned to the client by the server during the
subscribing time.public Ice_payload getEvents(java.lang.String payload_id, java.lang.String request_id, java.lang.String format, ISODatetime start, ISODatetime stop, java.lang.String subscription_id) throws OSSException
payload_id
- The payload id generated by the local client system.
Must be unique across all the payloads sent out by this
client application.request_id
- The request id to identify the current "get-status"
request which is generated by the local client system
and should be unique within the same ice payload across
all the requests.format
- should be "ice" in current implementationstart
- used to filter returned eventsstop
- used to filter returned eventsszSubscriptionId
- The unique
id known to both the client ( as the
subscriber ) and the syndication server, which is
assigned to the client by the server during the
subscribing time.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |