UNPKG

com.phloxui

Version:

PhloxUI Ng2+ Framework

57 lines (56 loc) 3.1 kB
import { InjectionToken } from '@angular/core'; import { Http, Response } from '@angular/http'; import { IConnectionManager } from '../share/IConnectionManager'; import { PhloxAppInfo } from '../component/model/PhloxAppInfo'; import { BackgroundProcess } from '../share/model/BackgroundProcess'; import { BackgroundProcessManager } from './BackgroundProcessManager.service'; import { AbstractServerResource } from '../share/AbstractServerResource'; import { DefaultConnectionManager } from '../share/DefaultConnectionManager'; export declare const APP_BASE_URLS: InjectionToken<string | string[]>; /** * <p style="text-indent: 2em;"> * A <code>ng</code> service class implementing [[IConnectionManager]] service interface. Please see [[IConnectionManager]] for more details. * </p> * * @author shiorin, tee4cute */ export declare class ConnectionManager implements IConnectionManager { protected defConnectionManager: DefaultConnectionManager; constructor(APP_BASE_URLS: any, http: Http, bgProcessMgr: BackgroundProcessManager); getPhloxAppInfo(): PhloxAppInfo; setPhloxAppInfo(phloxAppInfo: PhloxAppInfo): void; get(url: string, requestOptionsArgs: any): Promise<any>; getWithHttpInfo(url: string, requestOptionsArgs: any): Promise<Response>; post(url: string, body: any, requestOptionsArgs: any): Promise<any>; postWithHttpInfo(url: string, body: any, requestOptionsArgs: any): Promise<Response>; put(url: string, body: any, requestOptionsArgs: any): Promise<any>; putWithHttpInfo(url: string, body: any, requestOptionsArgs: any): Promise<Response>; delete(url: string, requestOptionsArgs: any): Promise<any>; deleteWithHttpInfo(url: string, requestOptionsArgs: any): Promise<Response>; patch(url: string, body: any, requestOptionsArgs: any): Promise<any>; patchWithHttpInfo(url: string, body: any, requestOptionsArgs: any): Promise<Response>; head(url: string, requestOptionsArgs: any): Promise<any>; headWithHttpInfo(url: string, requestOptionsArgs: any): Promise<Response>; options(url: string, requestOptionsArgs: any): Promise<any>; optionsWithHttpInfo(url: string, requestOptionsArgs: any): Promise<Response>; request(url: string, requestOptionsArgs: any): Promise<any>; requestWithHttpInfo(url: string, requestOptionsArgs: any): Promise<Response>; getRunningProcessesCount(option?: any): number; getRunningProcesses(option?: any): BackgroundProcess[]; getConnectionQuality(): number; addBaseURLs(url: string): void; setBaseURLs(urls: string[]): void; resetBaseURLs(): void; setDefaultHeader(key: string, value: string): void; removeDefaultHeader(key: string): void; resetDefaultHeaders(): void; setSearch(key: string, value: any): void; removeSearch(key: string): void; resetSearch(): void; setParam(key: string, value: any): void; removeParam(key: string): void; resetParams(): void; getName(): string; setName(name: string): void; createResource<R extends AbstractServerResource>(type: new (conMgr: IConnectionManager) => R): R; }