Sample: Simple logger


Purpose
The sample illustrates the basic framework for creating a server object interceptor (SOI). The SOI adds a message to the ArcGIS Server log whenever a REST request is received before forwarding the request to the underlying default implementation.
The sample exists in two versions: one for map services and one for image services.
See Deploying extensions to learn how to deploy the extension to your server.

How to use

See How to use ArcGIS samples for help on running the sample.

Data has been provided for your use with this sample. It can be found at <Your ArcGIS Developer Kit Install directory>/Samples/data/arcobjects/serverobjectinterceptors/SimpleSOI.

  1. Deploy SimpleSOI.soe to your server.
  2. Review the ArcGIS Server logs to see messages indicating REST requests are received before requests are forwarded to the underlying default implementation.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

soi/JavaSimpleMapSOI.java The JavaSimpleMapSOI Java Server Object Interceptor Extension class for map services.
soi/JavaSimpleImageSOI.java The JavaSimpleMapSOI Java Server Object Interceptor Extension class for image services.
lib/SimpleSOI.soe The deployable SOE file.