protected String getRequestException(String exception) { return getExceptionValue(exception); } protected String getRequestFormat( String format ) {
protected String getRequestFormat(String format) { return getFormatValue(format); }
/** * The WMS 1.0.0 specification uses a mapping of mimetypes to values to use * as parameter values in requests. This will take a parameter value and * convert it to its according mime type. * * @param exception an exceptions parameter value, such as "WMS_XML" * @return a mimeType, such as "application/vnd.ogc.se_xml" */ public static final String toExceptionMimeType (String exception) { return getMimeType(exception, exceptionMimeTypes); }
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { return WMS1_0_0.toFormatMIME("JPEG"); }
/** * Test for GEOS-6362: getFinalURL had side effects and gave different results if called * multiple times. */ @Test public void testNoSideEffectsOnGetFinalUrl() throws Exception { GetMapRequest request = new org.geotools.data.wms.WMS1_0_0().createGetMapRequest(new URL("http://test?")); SecuredGetMapRequest securedRequest = new SecuredGetMapRequest(request); Layer wmsLayer = new Layer(); wmsLayer.setName("layer1"); Layer layer = new SecuredWMSLayer(wmsLayer, WrapperPolicy.hide(null)); securedRequest.addLayer(layer); String firstCallURL = securedRequest.getFinalURL().toExternalForm(); String secondCallURL = securedRequest.getFinalURL().toExternalForm(); assertEquals(firstCallURL, secondCallURL); } }
protected void setupSpecifications() { specs = new Specification[3]; specs[0] = new WMS1_0_0(); specs[1] = new WMS1_1_0(); specs[2] = new WMS1_1_1(); } }
/** * The WMS 1.0.0 specification uses internal mappings in the parameter value instead of direct * mime types. This will map a given mime type to its proper parameter value according to the * spec. * * @param mimeType the mimeType to use, such as "application/vnd.ogc.se_xml" * @return the proper parameter value, such as "WMS_XML" */ public static final String getExceptionValue(String mimeType) { return getParameterValue(mimeType, exceptionMimeTypes); }
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { return WMS1_0_0.toFormatMIME("WMS_XML"); }
/** Sets up the specifications/versions that this server is capable of communicating with. */ protected void setupSpecifications() { specs = new Specification[4]; specs[0] = new WMS1_0_0(); specs[1] = new WMS1_1_0(); specs[2] = new WMS1_1_1(); specs[3] = new WMS1_3_0(); }
/** * The WMS 1.0.0 specification uses internal mappings in the parameter value * instead of direct mime types. This will map a given mime type to its * proper parameter value according to the spec. * * @param mimeType the mimeType to use, such as "application/vnd.ogc.se_xml" * @return the proper parameter value, such as "WMS_XML" */ public static final String getExceptionValue( String mimeType) { return getParameterValue(mimeType, exceptionMimeTypes); }
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { return WMS1_0_0.toFormatMIME("GML.1"); }
/** * Sets up the specifications/versions that this server is capable of * communicating with. */ protected void setupSpecifications() { specs = new Specification[4]; specs[0] = new WMS1_0_0(); specs[1] = new WMS1_1_0(); specs[2] = new WMS1_1_1(); specs[3] = new WMS1_3_0(); }
/** * The WMS 1.0.0 specification uses a mapping of mimetypes to values to use as parameter values * in requests. This will take a parameter value and convert it to its according mime type. * * @param exception an exceptions parameter value, such as "WMS_XML" * @return a mimeType, such as "application/vnd.ogc.se_xml" */ public static final String toExceptionMimeType(String exception) { return getMimeType(exception, exceptionMimeTypes); }
/** * Provides mapping from MIME type to WMS 1.0.0 Format. * * <p>WebMapServer api uses mime type internally for format information (indeed WMS 1.0.0 is the * only WMS specifcation not to use MIME type directly). * * <p> * * @param mimeType MIME type such as "image/gif" * @return Format well known WMS 1.0.0 format such as "GIF" */ public static final String getFormatValue(String mimeType) { return getParameterValue(mimeType, formatMimeTypes); }
protected String getRequestException(String exception) { return getExceptionValue(exception); }
protected String getRequestFormat( String format ) { return getFormatValue(format); } protected String processKey( String key ) {
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { return WMS1_0_0.toFormatMIME("GML.3"); }
/** * Provides mapping from well known format to MIME type. * <p> * WebMapServer api uses mime type internally for format information (indeed WMS 1.0.0 is the only WMS specifcation * not to use MIME type directly). * </p> * <p> * * @param format * @return MIME type for format */ public static final String toFormatMIME( String format ) { return getMimeType(format, formatMimeTypes); }
/** * Provides mapping from MIME type to WMS 1.0.0 Format. * <p> * WebMapServer api uses mime type internally for format information (indeed WMS 1.0.0 is the only WMS specifcation * not to use MIME type directly). * </p> * <p> * * @param mimeType MIME type such as "image/gif" * @return Format well known WMS 1.0.0 format such as "GIF" */ public static final String getFormatValue( String mimeType ) { return getParameterValue(mimeType, formatMimeTypes); }
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { return WMS1_0_0.toFormatMIME("INIMAGE"); }