|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Suggested interface to the subscriber ( or client to the OSS ) to implement their own offer/subscription manager. This interface is used for clients to keep track of the catalogs / offers received from the Syndication Server and all the established subscriptions.
Method Summary |
Type | Method |
---|---|
Ice_contact |
getCatalogContact()
Shortcut to 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 subscribe request |
Ice_payload |
getServerResponse(java.lang.String szResponseType)
Get the Ice_payload that's been stored. |
java.lang.String |
getSubscription(java.lang.String szSubscriptionId)
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)
Returns a String representation of the subscription given the subscription Id. |
void |
setServerRequest(java.lang.String szRequestType,
java.io.Reader rdRequest)
Set the client's subscription Request to remember for purposes of previewing the request. |
void |
setServerResponse(java.lang.String szResponseType,
Ice_payload catalogPayload)
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" |
Method Detail |
public void setServerResponse(java.lang.String szResponseType, Ice_payload catalogPayload) throws OSSException
szResponseType
- 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 rdRequest) throws OSSException
szRequestType
- Type of request.rdRequest
- The reader carrying the request.public java.lang.String getServerRequest(java.lang.String szRequestType)
public java.util.Iterator getSubscriptionIds()
public void removeSubscription(java.lang.String szSubscriptionId)
public java.lang.String getSubscription(java.lang.String szSubscriptionId)
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 |