[ 
https://issues.apache.org/jira/browse/ABDERA-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614822#action_12614822
 ] 

Sergio Bossa commented on ABDERA-188:
-------------------------------------

Just two words about how to configure the Open Search support into the current 
Abdera infrastructure.
It's very simple, indeed.

First of all, you have to configure all data related to your Open Search 
service into the *Info classes you can find into the 
org.apache.abdera.ext.opensearch.server and 
org.apache.abdera.ext.opensearch.server.impl packages.
You have to configure at least one OpenSearchInfo, with one or more 
OpenSearchUrlInfos and related OpenSearchUrlParameterInfo and 
OpenSearchUrlAdapter: see javadocs for more details.

Then, the OpenSearchInfo must be set into the two new request processors: 
org.apache.abdera.ext.opensearch.server.processors.OpenSearchDescriptionRequestProcessor
 and 
org.apache.abdera.ext.opensearch.server.processors.OpenSearchUrlRequestProcessor.

Finally, the two processors must be registered into the proper TargetResolver 
with their related target types you can find at: 
org.apache.abdera.ext.opensearch.server.processors.OpenSearchTargetTypes.

Moreover, remember that the actual search logic must be implemented into the 
OpenSearchUrlAdapter: you can extend the AbstractOpenSearchUrlAdapter 
convenience class, too.

That's all.
Let me know if you need any clarification.
Thanks!

> OpenSearch support improvement
> ------------------------------
>
>                 Key: ABDERA-188
>                 URL: https://issues.apache.org/jira/browse/ABDERA-188
>             Project: Abdera
>          Issue Type: Improvement
>    Affects Versions: 0.5.0
>            Reporter: Sergio Bossa
>         Attachments: OpenSearch.diff, opensearch.zip, OpenSearchV2.diff, 
> opensearchV2.zip, OpenSearchV3.diff
>
>
> I've improved Open Search support by almost completely rewriting the current 
> Open Search extension and providing a new implementation with the following 
> features which should cover all Open Search use cases:
> * Abdera model elements for both the Atom extension and the Open Search 
> Description document (package org.apache.abdera.ext.opensearch.model).
> * Metadata (*Info) classes for representing the Open Search server model 
> (package org.apache.abdera.ext.opensearch.server).
> * Adapter interface to implement for actually handling search urls (package 
> org.apache.abdera.ext.opensearch.server).
> * Two new target types (package 
> org.apache.abdera.ext.opensearch.server.processors).
> * Two new request processors for handling requests to the Open Search 
> description document and the Open Search urls (package 
> org.apache.abdera.ext.opensearch.server.processors).
> I'm going to attach a patch file with the new implementation and related 
> tests.
> I'd like to have your opinion about the whole stuff. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to