# Class: Context

## bemap.Context()

Base class for Context.

## Constructor

#### new Context()

##### Parameters:

Name | Type | Description
--- | --- | ---
`options.` | object |

Source:
  - bemap.js, line 247

### Members

#### (protected) host :string

Define the host name of BeMap server. By default "bemap-beta.benomad.com".

##### Type:

- string

Source:
  - bemap.js, line 262

#### (protected) login :string

Define the login.

##### Type:

- string

Source:
  - bemap.js, line 276

#### (protected) password :string

Define the Password.

##### Type:

- string

Source:
  - bemap.js, line 283

#### (protected) path :string

Define the path of bgis context. The string must be start with / character. By default "/bgis/".

##### Type:

- string

Source:
  - bemap.js, line 269

#### (protected) protocol :string

Define the protocol used. The HTTP or HTTPS, by default the HTTP.

##### Type:

- string

Source:
  - bemap.js, line 255

### Methods

#### getAuthUrlParams() → {String}

Return the BaMap Authentication.

Source:
  - bemap.js, line 329

##### Returns:

BeMap URL

Type
  String

#### getBaseUrl() → {String}

Return the BaMap URL.

Source:
  - bemap.js, line 318

##### Returns:

BeMap URL

Type
  String

#### getGeoserver() → {String}

Return the default BaMap Geoserver of context.

Source:
  - bemap.js, line 355

##### Returns:

BeMap Geoserver

Type
  String

#### isAuthInPost() → {boolean}

Return true if the authentication parameters will be write in the POST data of request.

Source:
  - bemap.js, line 347

##### Returns:

true if the authentication parameters will be write in the POST data of request..

Type
  boolean

#### post(options)

Perform a HTTP Post request.

##### Parameters:

Name | Type | Description
--- | --- | ---
`options` | Object |

Source:
  - bemap.js, line 363

#### setAuthInPost()

Set to true if the authentication parameters will be write in the POST data of request.

Source:
  - bemap.js, line 339