Related Topics |
---|
When you use the Servlet Connector, your ArcIMS services are available to anyone who knows the URL for accessing your site. In order to restrict requests that might overload your Spatial Servers, a set of restrictions can be set in the Esrimap_prop property file.
spatialServer.AllowRequestOutput=False
When a GET_IMAGE or GET_EXTRACT request is made, users have the option to specify an output directory and file name for images and zip files by using OUTPUT. When this property is set to False, any output directory included in the request is ignored and not processed by the Servlet Connector. When set to True, users can change the output directory. The recommended value is False.
spatialServer.AllowResponsePath=False
This property determines if ArcXML responses sent by the Spatial Server to the client contain pathnames to images, raster symbols, and zip files. By setting this property to False, the pathnames are omitted from the responses. The URLs are unaffected. The following ArcXML responses are affected:
If the property is set to True, the pathnames are included in the response. The recommended value is False.
spatialServer.ForbiddenImageTypes=
This property determines which output formats are forbidden when OUTPUT type is used in a GET_IMAGE request. Valid output types are:
Note: for the png24 format, use 'png' in the list rather than 'png24'.
By default, no output types are forbidden. Multiple types can be included in a comma delimited list. In the following example, bmp, tif, and png24 formats are forbidden:
spatialServer.ForbiddenImageTypes=bmp,tif,png |
When a GET_IMAGE request includes an OUTPUT type with a forbidden format, an image is generated in the default service format. For example, if a service is started using png8 as the output format, the image will be generated in png8 format. A warning message is written to the Spatial Server log file stating that a forbidden format was requested.
Png24, tif, and bmp files can be quite large and can easily exceed 1 MB in size. If you are concerned about performance, especially where bandwidth may be an issue, these files formats may take too long to transfer. If this is the case, you may want to disable these format types.
spatialServer.ForbiddenLayoutTypes=
This property determines which output formats are forbidden when OUTPUT type is used in a GET_LAYOUT request. Valid output types are: ai, bmp, emf, eps, gif, jpg, pdf, png8, png24, svg, and tif. By default, no output types are forbidden. Multiple types can be included in a comma delimited list.
In the following example, bmp, emf, and eps formats are forbidden:spatialServer.ForbiddenLayoutTypes=bmp,emf,eps |
When a request is made using a forbidden format, a layout image is generated in the default service format. For example, if a service is started using png8 as the output format, the layout will be generated in PNG8 format. A warning message is written to the Spatial Server log file stating that a forbidden format was requested.
Locate the Esrimap_prop file installed in your Web server's servlet directory and edit it with a text editor. See Common servlet engine file locations for a list of common Web servers and their servlet directory location.
Note: ArcIMS installs a backup copy of all the files that comprise the Servlet Connector in \Connectors\Servlet on Windows or /Middleware/Servlet_Connector on UNIX and Linux. You should not edit the Esrimap_prop file at this location because it will have no impact on the operation of the Servlet Connector.