[
https://issues.apache.org/jira/browse/NUTCH-2678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16716865#comment-16716865
]
Markus Jelsma commented on NUTCH-2678:
--------------------------------------
Updated patch to include configuration file template. I really hate git for not
including unadded or added files in a simple diff.
> Allow for per-host configurable protocol plugin
> -----------------------------------------------
>
> Key: NUTCH-2678
> URL: https://issues.apache.org/jira/browse/NUTCH-2678
> Project: Nutch
> Issue Type: Improvement
> Components: protocol
> Affects Versions: 1.15
> Reporter: Markus Jelsma
> Assignee: Markus Jelsma
> Priority: Major
> Fix For: 1.16
>
> Attachments: NUTCH-2678.patch, NUTCH-2678.patch, NUTCH-2678.patch
>
>
> Introduces new parameter for protocol plugins called host. It takes a comma
> separated set of host names. Protocols are resolved by hostname first, then
> by protocol as it is now.
> {code}
> <extension id="org.apache.nutch.protocol.http"
> name="HttpProtocol"
> point="org.apache.nutch.protocol.Protocol">
> <implementation id="org.apache.nutch.protocol.http.Http"
> class="org.apache.nutch.protocol.http.Http">
> <parameter name="host" value="nutch.apache.org"/>
> <parameter name="protocolName" value="http,https"/>
> </implementation>
> </extension>
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)