A class that helps generating the responseProperties string for a resource or operation.
Constructors
| Name | Description |
|---|---|
| RestResponseProperties | RestResponseProperties constructor. |
RestResponseProperties Constructor
RestResponseProperties constructor, which sets default content type to "text/plain;charset=utf-8" and sets default data type to esriWebResponseDataType.esriWRDTPayload.
public RestResponseProperties()Properties
| Property | Property value | Description |
|---|---|---|
| RestResponseProperties.ContentType | String | Defines the value of the Content-Type http header. Default value is "text/plain;charset=utf-8" (valid for JSON) |
| RestResponseProperties.IsError | Boolean | Indicates if an error happened when processing a request. Some properties may not be written if that is the case. |
| RestResponseProperties.ResponseDataType | esriWebResponseDataType | Indicates if the response is sent embedded to the http handler (esriWRDTPayload, the default), or if a file is written in an output directory and the http handler should pick it up from there (esriWRDTFileToReturn) |
Methods
| Name | Description |
|---|---|
| RestResponseProperties.ToString() | Generates a comma-separated list of properties to be returned to the http handler. |
RestResponseProperties.ToString() Method
Generates a comma-separated list of properties to be returned to the http handler