|
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 |
Defines the methods to be implemented by those classes which will process packages delieved by syndicators. Oracle Syndication Services parses incoming messages using a XML SAX parser. The SAX parser is an event-based model to parse XML documents avoiding to load the whole document in memory. SAXPackageHandler is an abstraction over the SAX APIs customized for an event-based parsing of syndication content packages. Content packages start with a package declaration and then a set of items. Items can be grouped in item groups. The following APIs will be invoked by the SyndicateConnection whenever the corresponding package entities are found during the SAX package parsing.
Method Summary | |
void |
endItem(SyndicatePackage pkg, Item itm) Called when the end a package item is encountered. |
void |
endItemGroup(SyndicatePackage pkg, ItemGroup itmgrp) Called when the end a package item group is encountered. |
void |
endPackage(SyndicatePackage pkg) Called when the end of a content package is encountered. |
void |
error(SyndicatePackage pkg, SyndicateException e) Called when an error is encoutered while parsing the content package |
void |
itemCharacters(SyndicatePackage pkg, Item itm, char[] buff, int iStart, int iLength) Called when a package item content is encountered. |
void |
itemRef(SyndicatePackage pkg, ItemRef itmref) Called when a package item reference is encountered. |
void |
itemRemove(SyndicatePackage pkg, ItemRemove itmrm) Called when a package item remove is encountered. |
void |
startItem(SyndicatePackage pkg, Item itm) Called when a new beginning of a package item is encountered. |
void |
startItemGroup(SyndicatePackage pkg, ItemGroup itmgrp) Called when the beginning a package item group is encountered. |
void |
startPackage(SyndicatePackage pkg) Called when a new beginning of a content package is encountered. |
Method Detail |
public void startPackage(SyndicatePackage pkg) throws SyndicateException
SyndicatePackage
- allows for accessing package metadatapublic void startItem(SyndicatePackage pkg, Item itm) throws SyndicateException
SyndicatePackage
- allows for accessing package metadataItem
- allows for accessing the item metadatapublic void itemCharacters(SyndicatePackage pkg, Item itm, char[] buff, int iStart, int iLength) throws SyndicateException
SyndicatePackage
- allows for accessing package metadataItem
- allows for accessing the item metadatabuff,
- buffer containing the item contentbuff,
- start index in buff for the beginnign of the buffer contentbuff,
- length of the buffer contentpublic void endItem(SyndicatePackage pkg, Item itm) throws SyndicateException
SyndicatePackage
- allows for accessing package metadataItem
- allows for accessing the item metadatapublic void startItemGroup(SyndicatePackage pkg, ItemGroup itmgrp) throws SyndicateException
SyndicatePackage
- allows for accessing package metadataItemGroup
- allows for accessing the item group metadatapublic void endItemGroup(SyndicatePackage pkg, ItemGroup itmgrp) throws SyndicateException
SyndicatePackage
- allows for accessing package metadataItemGroup
- allows for accessing the item group metadatapublic void itemRemove(SyndicatePackage pkg, ItemRemove itmrm) throws SyndicateException
SyndicatePackage
- allows for accessing package metadataItemRemove
- allows for accessing the item remove metadatapublic void itemRef(SyndicatePackage pkg, ItemRef itmref) throws SyndicateException
SyndicatePackage
- allows for accessing package metadataItemRef
- allows for accessing the item reference metadatapublic void endPackage(SyndicatePackage pkg) throws SyndicateException
SyndicatePackage
- allows for accessing package metadatapublic void error(SyndicatePackage pkg, SyndicateException e)
SyndicatePackage
- allows for accessing package metadataSyndicateException
- the exception raised by during the package content parsing
|
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.