uk.ac.ceh.dynamo.GridMapRequestMappingHandlerMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dynamo-mapping Show documentation
Show all versions of dynamo-mapping Show documentation
A Spring MVC plugin for creating dynamic MapServer maps with freemarker templates
package uk.ac.ceh.dynamo;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.EnumMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.ServletContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.support.DefaultDataBinderFactory;
import org.springframework.web.method.support.InvocableHandlerMethod;
import org.springframework.web.servlet.mvc.method.RequestMappingInfo;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
import uk.ac.ceh.dynamo.providers.GridMapLegendProvider;
import uk.ac.ceh.dynamo.providers.GridMapMapLayersProvider;
import uk.ac.ceh.dynamo.providers.GridMapMapProvider;
import uk.ac.ceh.dynamo.providers.GridMapMapViewportProvider;
/**
* The request mapping handler which will register the GridMapControllers request
* handlers at all of the end points of Controller Methods annotated with @GridMap
* @author Christopher Johnson
*/
public class GridMapRequestMappingHandlerMapping extends RequestMappingHandlerMapping {
private @Autowired RequestMappingHandlerAdapter adapter;
private @Autowired(required=false) FeatureResolver resolver;
private @Autowired ServletContext context;
private final GridMapRequestFactory gridMapHelper;
private final Set methods;
private final List