package gov.usgs.cida.gcmrcservices.jsl.station;

import gov.usgs.cida.gcmrcservices.jsl.data.QWDownloadSpec;
import gov.usgs.webservices.jdbc.routing.InvalidServiceException;
import gov.usgs.webservices.jdbc.routing.UriRouter;
import gov.usgs.webservices.jdbc.service.WebService;
import gov.usgs.webservices.jdbc.spec.Spec;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author dmsibley
 */
public class StationService extends WebService {
	private static final long serialVersionUID = 1L;
	@SuppressWarnings("unused")
	private static final Logger log = LoggerFactory.getLogger(StationService.class);

	public StationService() {
		this.specMapping.put("param", StationParamSpec.class);
		this.specMapping.put("bs", StationBSSpec.class);
		this.specMapping.put("qwdownload", QWDownloadSpec.class);
		this.specMapping.put("credit", StationCreditSpec.class);
	}

	@Override
	protected Map<String, String[]> defineParameters(HttpServletRequest req, UriRouter router, Map<String, String[]> params) throws InvalidServiceException {
		Map<String, String[]> result = new HashMap<String, String[]>();
		
		result.putAll(super.defineParameters(req, router, params));
		
		if (!result.containsKey(Spec.ORDER_BY_PARAM)) {
			result.put(Spec.ORDER_BY_PARAM, new String[] {StationParamSpec.S_DISPLAY_ORDER});
		}
		
		return result;
	}
	
	
}

@@ -911,67 +911,8 @@
 s);%0A
-%09%09this.specMapping.put(%22credit%22, StationCreditSpec.class);%0A
 %09%7D%0A%0A

remove line that fixed merge.