|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.syndication.client.local.ICESampleOfferManager
Reference implementation of the ICEClientOfferManager interface, which is used for clients to keep track of the catalogs / offers received from the Syndication Server and all the established subscriptions.
Constructor Summary |
ICESampleOfferManager()
Empty constructor does some initializations |
Method Summary |
Type | Method |
---|---|
Ice_contact |
getCatalogContact()
Get the contact information for the current catalog response. |
java.lang.String |
getCurrentState(java.lang.String szSubscriptionId)
Return the current state for the given subscription in order to retrieve content from the server |
int |
getNumberOfOfferGroups()
Due to the fixed sturcture of ICE payload, any catalog is required to contain ICE-OFFER-GROUP as the starting element. |
Ice_offer |
getOffer(java.lang.String szOfferId)
Get the offer in the current catalog stored at the client side by its key : group description |
java.util.Iterator |
getOfferGroups()
Get all the offer-groups in the current catalog stored at the client side |
java.lang.String |
getRawServerResponse(java.lang.String szResponseType)
Get the raw response that's been stored. |
java.lang.String |
getServerRequest(java.lang.String szRequestType)
String version of the subscription |
Ice_payload |
getServerResponse(java.lang.String szResponseType)
Get the Ice_payload that's been stored. |
java.lang.String |
getSubscription(java.lang.String szSubsId)
Returns a String representation of the subscription given the subscription Id. |
java.util.Iterator |
getSubscriptionIds()
Returns the list of subscription Ids |
void |
removeSubscription(java.lang.String szSubscriptionId)
Remove the subscription response from the server. |
void |
setServerRequest(java.lang.String szRequestType,
java.io.Reader rdSubscribe)
Set the user's subscribe request. |
void |
setServerResponse(java.lang.String szResponseType,
Ice_payload payload)
Store the offer-groups/offers |
void |
updateCurrentState(java.lang.String szSubscriptionId,
java.lang.String szNewState)
Each time after a PULL content, the client needs to update its local subscriptiontable for the "current state" |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ICESampleOfferManager()
Method Detail |
public void setServerResponse(java.lang.String szResponseType, Ice_payload payload) throws OSSException
iResponseType
- Type of the response we're rememberingszRawResponse
- String representation of the responsepayload
- ICE Payload representation of the responsepublic java.lang.String getRawServerResponse(java.lang.String szResponseType)
szResponseType
- Type of the response remembered.public Ice_payload getServerResponse(java.lang.String szResponseType)
szResponseType
- Type of the response remembered.public Ice_contact getCatalogContact() throws OSSException
public int getNumberOfOfferGroups() throws OSSException
public java.util.Iterator getOfferGroups() throws OSSException
public Ice_offer getOffer(java.lang.String szOfferId) throws OSSException
public void setServerRequest(java.lang.String szRequestType, java.io.Reader rdSubscribe) throws OSSException
rdSubscribe
- The complete ICE payload which contains all
the subscribed offers
TODO: Change this to take in just a string. Have the caller pass
in a String already.public java.lang.String getServerRequest(java.lang.String szRequestType)
public void removeSubscription(java.lang.String szSubscriptionId)
public java.util.Iterator getSubscriptionIds()
public java.lang.String getSubscription(java.lang.String szSubsId)
public java.lang.String getCurrentState(java.lang.String szSubscriptionId)
public void updateCurrentState(java.lang.String szSubscriptionId, java.lang.String szNewState)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |