improve GetMap response's delegate lookup

Description

Currently the generation of a map from a WMS GetMap request is made by a delegate class specialized in producing the requested map format.
Since a single delegate can be a producer of more than one format, the lookup system should be moven to a kind of canProduce(imageFormat) iteration, instead of the current mapping of format/producerClass.

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:45 PM

CodeHaus Comment From: groldan - Time: Sun, 25 Jan 2004 11:28:50 -0600
---------------------
<p>was solved a time ago, but I didn't have updated the jira task.

Given a requested map output format, GetMapResponse finds a delagate by

for (Iterator it = delegates.iterator(); it.hasNext()<img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/wink.gif" height="16" width="16" align="absmiddle" alt="" border="0"/> {

delegate = (GetMapDelegate) it.next();</p>

<p> if (delegate.canProduce(requestFormat)) </p>
{
delegateClass = delegate.getClass();

break;
}
<p> }</p>

Fixed

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Low