|
OracleAS Syndication Services API Reference 10g (9.0.4) Part No. B10399-01 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides methods for Oracle Syndication Services client applications to interact with the server. Its methods allows for requesting a catalog of available offers, subscribe to offers, request content packages. It also provides subscription management and package management APIs.
Method Summary | |
Cancellation |
cancelSubscription(java.lang.String subscriptionID, java.lang.String reason, java.lang.String xmlLang) Sends a request for the cancellation of the supplied subscription for the supplied reasons. |
OfferResponse |
changeSubscription(java.lang.String subscriptionID) Sends a request for a change of the supplied subscription. |
void |
close() Closes the connection to the syndication server and release the associated resources. |
Response |
confirm(java.lang.String packageID) Sends the confirmation for the delivery of a previous content package. |
Catalog |
getCatalog() Returns the catalog of offers available for subscription. |
EventsResponse |
getEvents(ISODateTime dStart, ISODateTime dStop, java.lang.String subscriptionID) Returns the list of event performed by this subscriber in the supplied time period for the supplied subscription. |
PackageResponse |
getPackage(java.lang.String subscriptionID, java.lang.String params, SAXPackageHandler pkgHndlr) Sends an get package request for the supplied subscription. |
PackageResponse |
getPackage(java.lang.String subscriptionID, java.lang.String currentState, java.lang.String params, SAXPackageHandler icePkgHndlr) Sends an get package request for the supplied subscription. |
StatusResponse |
getStatus() Returns a status summary for all the subscriptions owned by the subscriber associated with this connection. |
StatusResponse |
getStatus(java.lang.String subscriptionID) Returns a status summary for the supplied subscription owned by the subscriber associated with this connection. |
SyndicateSubscriber |
getSubscriber() Returns the subscriber associated with this connection |
Response |
ping() Pings the syndication server associated with this connection to verify if it alive. |
Response |
push(java.lang.String subscriptionID, java.lang.String state) Sends a request asking server to push now on the provided subscription id The following responses are expected under different conditions condition 1: the request is valid and push has been scheduled response : ICE-CODE with status code 200 condition 2: the request is invalid because the push deliveryrule is not allowed to push at this time response : ICE-CODE with status code 422 condition 3: the request is invalid because there is no push deliveryrule associated with this subscription response : ICE-CODE with status code 409 |
SubscriptionResponse |
subscribe(Offer offer) Sends a request for subscription to the supplied offer and starts negotiation process with the syndicator. |
Response |
unconfirm(java.lang.String packageID) Sends the negative confirmation for the delivery of a previous content package: by doing so, the user notifies the server that the previous delivered package has not been received correctly and therefore its content will have to be re-delivered in the next get package request. |
Method Detail |
public SyndicateSubscriber getSubscriber()
public Response ping() throws SyndicateException
public Cancellation cancelSubscription(java.lang.String subscriptionID, java.lang.String reason, java.lang.String xmlLang) throws SyndicateException
public OfferResponse changeSubscription(java.lang.String subscriptionID) throws SyndicateException
public Catalog getCatalog() throws SyndicateException
public EventsResponse getEvents(ISODateTime dStart, ISODateTime dStop, java.lang.String subscriptionID) throws SyndicateException
public PackageResponse getPackage(java.lang.String subscriptionID, java.lang.String params, SAXPackageHandler pkgHndlr) throws SyndicateException
subscriptionID,
- ID of the subscription for which the get package request is issued.param,
- optional parameters associated with this get package requestpkgHndlr,
- Package handler to be invoked to store the received package contentpublic PackageResponse getPackage(java.lang.String subscriptionID, java.lang.String currentState, java.lang.String params, SAXPackageHandler icePkgHndlr) throws SyndicateException
subscriptionID,
- ID of the subscription for which the get package request is issued.param,
- optional parameters associated with this get package requestpkgHndlr,
- Package handler to be invoked to store the received package contentpublic StatusResponse getStatus() throws SyndicateException
public StatusResponse getStatus(java.lang.String subscriptionID) throws SyndicateException
public Response confirm(java.lang.String packageID) throws SyndicateException
packageID,
- ID of the package that you want to confirm. The ID can be accessed through the PackageResponse structure returned by the getPackage call.public Response unconfirm(java.lang.String packageID) throws SyndicateException
packageID,
- ID of the package that you want to unconfirm. The ID can be accessed through the PackageResponse structure returned by the getPackage call.public SubscriptionResponse subscribe(Offer offer) throws SyndicateException, NegotiationException
public void close() throws SyndicateException
public Response push(java.lang.String subscriptionID, java.lang.String state) throws SyndicateException
|
Copyright © 2001, 2003, Oracle. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001, 2003, Oracle. All rights reserved.