-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdw.system.d.ts
146 lines (139 loc) · 4.2 KB
/
dw.system.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
declare namespace dw.system {
declare class Logger extends Object {
// constants
// -
// properties
get debugEnabled(): boolean;
get errorEnabled(): boolean;
get infoEnabled(): boolean;
get rootLogger(): Log;
get warnEnabled(): boolean;
// constructors
// -
// methods
static debug(msg: string, ...args: Object): void;
static error(msg: string, ...args: Object): void;
static getLogger(category: string): Log;
static getLogger(fileNamePrefix: string, category: string): Log;
static getRootLogger(): Log;
static info(msg: string, ...args: Object): void;
static isDebugEnabled(): boolean;
static isErrorEnabled(): boolean;
static isInfoEnabled(): boolean;
static isWarnEnabled(): boolean;
static warn(msg: string, ...args: Object): void;
}
declare class Request extends Object {
// constants
// -
// properties
get clientId(): string;
get custom(): CustomAttributes;
geolocation: Geolocation;
get httpCookies(): Cookies;
get httpHeaders(): Map;
get httpHost(): string;
get httpLocale(): string;
get httpMethod(): string;
get httpParameterMap(): dw.web.HttpParameterMap;
get httpParameters(): Map;
get httpPath(): string;
get httpProtocol(): string;
get httpQueryString(): string;
get httpReferer(): string;
get httpRemoteAddress(): string;
get httpRequest(): boolean;
get httpSecure(): boolean;
get httpURL(): URL;
get httpUserAgent(): string;
get includeRequest(): boolean;
locale: string;
get ocapiVersion(): string;
get pageMetaData(): PageMetaData;
get requestID(): string;
get session(): Session;
get triggeredForm(): Form;
get triggeredFormAction(): FormAction;
// constructors
// -
// methods
addHttpCookie(cookie: Cookie): void;
getClientId(): string;
getCustom(): CustomAttributes;
getGeolocation(): Geolocation;
getHttpCookies(): Cookies;
getHttpHeaders(): Map;
getHttpHost(): string;
getHttpLocale(): string;
getHttpMethod(): string;
getHttpParameterMap(): HttpParameterMap;
getHttpParameters(): Map;
getHttpPath(): string;
getHttpProtocol(): string;
getHttpQueryString(): string;
getHttpReferer(): string;
getHttpRemoteAddress(): string;
getHttpURL(): URL;
getHttpUserAgent(): string;
getLocale(): string;
getOcapiVersion(): string;
getPageMetaData(): PageMetaData;
getRequestID(): string;
getSession(): Session;
getTriggeredForm(): Form;
getTriggeredFormAction(): FormAction;
isHttpRequest(): boolean;
isHttpSecure(): boolean;
isIncludeRequest(): boolean;
setGeolocation(geoLocation: Geolocation): void;
setLocale(localeID: string): boolean;
}
declare class Response extends Object {
// constants
const ACCESS_CONTROL_ALLOW_CREDENTIALS: string;
const ACCESS_CONTROL_ALLOW_HEADERS: string;
const ACCESS_CONTROL_ALLOW_METHODS: string;
const ACCESS_CONTROL_ALLOW_ORIGIN: string;
const ACCESS_CONTROL_EXPOSE_HEADERS: string;
const ALLOW: string;
const CONTENT_DISPOSITION: string;
const CONTENT_LANGUAGE: string;
const CONTENT_LOCATION: string;
const CONTENT_MD5: string;
const CONTENT_TYPE: string;
const LOCATION: string;
const PLATFORM_FOR_PRIVACY_PREFERENCES_PROJECT: string;
const REFERRER_POLICY: string;
const REFRESH: string;
const RETRY_AFTER: string;
const VARY: string;
const X_CONTENT_TYPE_OPTIONS: string;
const X_FRAME_OPTIONS: string;
const X_FRAME_OPTIONS_DENY_VALUE: string;
const X_FRAME_OPTIONS_SAMEORIGIN_VALUE: string;
const X_XSS_PROTECTION: string;
// properties
get writer(): dw.io.PrintWriter;
// constructors
// -
// methods
addHttpCookie(cookie: Cookie): void;
addHttpHeader(name: string, value: string): void;
containsHttpHeader(name: string): boolean;
getWriter(): PrintWriter;
redirect(url: URL): void;
redirect(url: URL, status: number): void;
redirect(location: string): void;
redirect(location: string, status: number): void;
redirect(redirect: URLRedirect): void;
setBuffered(buffered: boolean): void;
setContentType(contentType: string): void;
setExpires(expires: number): void;
setExpires(expires: Date): void;
setHttpHeader(name: string, value: string): void;
setStatus(status: number): void;
setVaryBy(varyBy: string): void;
}
declare class PipelineDictionary extends Object {
}
}