The RestHandlerOpCode class contains common REST request codes for the Map Server. The main benefit of using class instead of enum is to allow developers to add more opCodes in the derived types. See LayerAccess SOI source for an example of custom REST request codes.
Fields
Field | Description |
---|---|
RestHandlerOpCode.DefaultNoOp | The DefaultNoOp REST request code must be used when REST request filtering code could not match any other RestHandlerOpCode to the REST request. |
RestHandlerOpCode.Root | The Root code matches the REST root resource. |
RestHandlerOpCode.RootFind | The RootFind code matches 'find' operation on REST root resource. |
RestHandlerOpCode.RootIdentify | The RootIdentify code matches 'identify' operation on REST root resource. |
RestHandlerOpCode.RootExport | The RootExport code matches 'export' operation on REST root resource. |
RestHandlerOpCode.RootGenerateKml | The RootGenerateKml code matches 'generateKml' operation on REST root resource. |
RestHandlerOpCode.RootLayers | The RootLayers code matches 'layers' sub-resource. |
RestHandlerOpCode.RootLegend | The RootLegend code matches 'legend' sub-resource. |
RestHandlerOpCode.LayerRoot | The LayerRoot code matches '/layers/{id}/' sub-resource. |
RestHandlerOpCode.LayerGenerateRenderer | The LayerGenerateRenderer code matches '/layers/{id}/generateRenderer' operation. |
RestHandlerOpCode.LayerQuery | The LayerQuery code matches 'layers/{id}/query' operation. |
RestHandlerOpCode.LayerQueryRelatedRecords | The LayerQueryRelatedRecords code matches '/layers/{id}/queryRelatedRecords' operation. |
RestHandlerOpCode.InternalValue | The InternalValue property is used to emulate enum cast-to-int compatibility. |