Table of Contents

Class WebServerHelper

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

Collection of static methods related to the web server that allows it to be used by other projects without referencing CheckmateServer.

public static class WebServerHelper
Inheritance
WebServerHelper
Inherited Members

Fields

DefaultSessionExpiryDays

Default session expiry interval in days.

public const int DefaultSessionExpiryDays = 14

Field Value

int

Methods

GetPreferableFormat(string)

Returns preferable response type (json, html).

public static string GetPreferableFormat(string acceptFormat)

Parameters

acceptFormat string

Accept http header value.

Returns

string

prefered format

WrapMyGeotabScript(string, FileInfo, string)

On request of a JS file, this wraps the file contents to enable import/export statement handling.

public static string WrapMyGeotabScript(string fileContent, FileInfo fileInfo, string className)

Parameters

fileContent string

The entire file body contents.

fileInfo FileInfo

File information.

className string

The "geotab" class name representing this file.

Returns

string

wrapped script