C# Class NetOperationAccessSOI.NetOperationAccessSOI

Inheritance: IServerObjectExtension, IRESTRequestHandler, IWebRequestHandler, IRequestHandler2, IRequestHandler
ファイルを表示 Open project: Esri/arcobjects-sdk-community-samples

Public Methods

Method Description
GetSchema ( ) : string
HandleBinaryRequest ( byte &request ) : byte[]
HandleBinaryRequest2 ( string Capabilities, byte &request ) : byte[]
HandleRESTRequest ( string Capabilities, string resourceName, string operationName, string operationInput, string outputFormat, string requestProperties, string &responseProperties ) : byte[]
HandleStringRequest ( string Capabilities, string request ) : string
HandleStringWebRequest ( esriHttpMethod httpMethod, string requestURL, string queryString, string Capabilities, string requestData, string &responseContentType, esriWebResponseDataType &respDataType ) : byte[]
Init ( IServerObjectHelper pSOH ) : void
NetOperationAccessSOI ( ) : ESRI.ArcGIS.esriSystem
Shutdown ( ) : void

Private Methods

Method Description
CheckAuthorization ( string operationName ) : bool

Very basic authorization filter. Uses hard-coded role list. Only checks authorization on find, identify and export, all other operations are forbidden.

GetRoleInformation ( ) : HashSet

Get allowed roles for the user making a request.

Method Details

GetSchema() public method

public GetSchema ( ) : string
return string

HandleBinaryRequest() public method

public HandleBinaryRequest ( byte &request ) : byte[]
request byte
return byte[]

HandleBinaryRequest2() public method

public HandleBinaryRequest2 ( string Capabilities, byte &request ) : byte[]
Capabilities string
request byte
return byte[]

HandleRESTRequest() public method

public HandleRESTRequest ( string Capabilities, string resourceName, string operationName, string operationInput, string outputFormat, string requestProperties, string &responseProperties ) : byte[]
Capabilities string
resourceName string
operationName string
operationInput string
outputFormat string
requestProperties string
responseProperties string
return byte[]

HandleStringRequest() public method

public HandleStringRequest ( string Capabilities, string request ) : string
Capabilities string
request string
return string

HandleStringWebRequest() public method

public HandleStringWebRequest ( esriHttpMethod httpMethod, string requestURL, string queryString, string Capabilities, string requestData, string &responseContentType, esriWebResponseDataType &respDataType ) : byte[]
httpMethod esriHttpMethod
requestURL string
queryString string
Capabilities string
requestData string
responseContentType string
respDataType esriWebResponseDataType
return byte[]

Init() public method

public Init ( IServerObjectHelper pSOH ) : void
pSOH IServerObjectHelper
return void

NetOperationAccessSOI() public method

public NetOperationAccessSOI ( ) : ESRI.ArcGIS.esriSystem
return ESRI.ArcGIS.esriSystem

Shutdown() public method

public Shutdown ( ) : void
return void