Class RestResponseProperties

Namespace
ESRI.Server.SOESupport
Assembly
ESRI.Server.SOESupport.dll

A class that helps generating the responseProperties string for a resource or operation.

public class RestResponseProperties
Inheritance
RestResponseProperties
Inherited Members

Constructors

RestResponseProperties()

RestResponseProperties constructor. Sets content type to "text/plain;charset=utf-8" Sets data type to esriWebResponseDataType.esriWRDTPayload

public RestResponseProperties()

Properties

ContentType

Defines the value of the Content-Type http header. Default value is "text/plain;charset=utf-8" (valid for JSON)

public string ContentType { get; set; }

Property Value

string

IsError

Indicates if an error happened when processing a request. Some properties may not be written if that is the case.

public bool IsError { get; set; }

Property Value

bool

ResponseDataType

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)

public esriWebResponseDataType ResponseDataType { get; set; }

Property Value

esriWebResponseDataType

Methods

ToString()

Generates a comma-separated list of properties to be returned to the http handler

public override string ToString()

Returns

string