01: package org.geoserver.wfs.kvp;
02:
03: import java.net.URI;
04:
05: import org.geoserver.ows.FlatKvpParser;
06:
07: /**
08: * Kvp Parser which parses srsName strings like "epsg:4326" into a URI.
09: *
10: * @author Justin Deoliveira, The Open Planning Project
11: *
12: */
13: public class SrsNameKvpParser extends FlatKvpParser {
14:
15: public SrsNameKvpParser() {
16: super ("srsName", URI.class);
17:
18: }
19:
20: protected Object parseToken(String token) throws Exception {
21: return new URI(token);
22: }
23:
24: }
|