public interface IRepositoryListener
Modifier and Type | Method and Description |
---|---|
boolean |
processReferral(String parentUrl,
Referral referral,
int maxDepth,
int currentDepth)
Process an OBR referral
|
boolean |
processResource(Resource resource)
Process an OBR resource descriptor from the index document, and possibly
request early termination of the parser.
|
boolean processResource(Resource resource)
resource
- The resource descriptor to be processed.false
will result in the parser being stopped with a
StopParseException
.boolean processReferral(String parentUrl, Referral referral, int maxDepth, int currentDepth)
parentUrl
- The url of the Repository that referred to this Referralreferral
- The referral to be processedmaxDepth
- The depth of referrals this repository acknowledges.currentDepth
- The current depthfalse
will result in the parser being stopped with a
StopParseException
.Copyright © 2018 aQute SARL. All rights reserved.