-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdw.web.d.ts
162 lines (155 loc) · 5.91 KB
/
dw.web.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
declare namespace dw.web {
declare class HttpParameter {
// constants
// -
// properties
get booleanValue(): boolean;
get dateValue(): Date;
get doubleValue(): number;
get empty(): boolean;
get intValue(): number;
get rawValue(): string;
get rawValues(): dw.util.Collection;
get stringValue(): string | null;
get stringValues(): dw.util.Collection<string>;
get submitted(): boolean;
get value(): string | null;
get values(): dw.util.Collection;
// constructors
// -
// methods
containsStringValue(value: string): boolean;
getBooleanValue(): boolean;
getBooleanValue(defaultValue: boolean): boolean;
getDateValue(): Date;
getDateValue(defaultValue: Date): Date;
getDoubleValue(): number;
getDoubleValue(defaultValue: number): number;
getIntValue(): number;
getIntValue(defaultValue: number): number;
getRawValue(): string;
getRawValues(): dw.util.Collection;
getStringValue(): string;
getStringValue(defaultValue: string): string | null;
getStringValues(): dw.util.Collection<string>;
getValue(): string | null;
getValues(): dw.util.Collection;
isChecked(value: string): boolean;
isEmpty(): boolean;
isSubmitted(): boolean;
toString(): string;
}
declare class HttpParameterMap extends Object {
// constants
// -
// properties
get parameterCount(): number;
get parameterNames(): dw.util.Set<string>;
get requestBodyAsString(): string;
// constructors
// -
// methods
get(name: Object): HttpParameter;
getParameterCount(): number;
getParameterMap(prefix: string): HttpParameterMap;
getParameterNames(): dw.util.Set;
getRequestBodyAsString(): string;
isParameterSubmitted(key: string): boolean;
processMultipart(callback: Function): dw.util.LinkedHashMap;
}
declare class URL extends Object {
// constants
// -
// properties
// -
// constructors
// -
// methods
abs(): URL;
append(name: string, value: string): URL;
appendCSRFTokenBM(): URL;
host(host: string): URL;
http(): URL;
https(): URL;
relative(): URL;
remove(name: string): URL;
siteHost(): URL;
toString(): string;
}
declare class URLAction extends Object {
// constants
// -
// properties
// -
// constructors
URLAction(action: string, siteName: string, locale: string, hostName: string);
URLAction(action: string, siteName: string, locale: string);
URLAction(action: string, siteName: string);
URLAction(action: string);
// methods
// -
}
declare class URLUtils extends Object {
// constants
const CONTEXT_CATALOG: string;
const CONTEXT_LIBRARY: string;
const CONTEXT_SITE: string;
// properties
// -
// constructors
// -
// methods
static abs(action: URLAction, ...params: URLParameter): URL;
static abs(appendSID: boolean, action: URLAction, ...params: URLParameter): URL;
static abs(action: string, ...namesAndParams: string): URL;
static abs(appendSID: boolean, action: string, ...namesAndParams: string): URL;
static absImage(context: string, contextID: string, relPath: string, transform: Object): URL;
static absImage(relPath: string, transform: Object): URL;
static absStatic(context: string, contextID: string, relPath: string): URL;
static absStatic(relPath: string): URL;
static absWebRoot(): URL;
static continueURL(): URL;
static home(): URL;
static http(action: URLAction, ...params: URLParameter): URL;
static http(appendSID: boolean, action: URLAction, ...params: URLParameter): URL;
static http(action: string, ...namesAndParams: string): URL;
static http(appendSID: boolean, action: string, ...namesAndParams: string): URL;
static httpContinue(): URL;
static httpHome(): URL;
static httpImage(context: string, contextID: string, relPath: string, transform: Object): URL;
static httpImage(host: string, context: string, contextID: string, relPath: string, transform: Object): URL;
static httpImage(relPath: string, transform: Object): URL;
static httpImage(host: string, relPath: string, transform: Object): URL;
static https(action: URLAction, ...params: URLParameter): URL;
static https(appendSID: boolean, action: URLAction, ...params: URLParameter): URL;
static https(action: string, ...namesAndParams: string): URL;
static https(appendSID: boolean, action: string, ...namesAndParams: string): URL;
static httpsContinue(): URL;
static httpsHome(): URL;
static httpsImage(context: string, contextID: string, relPath: string, transform: Object): URL;
static httpsImage(host: string, context: string, contextID: string, relPath: string, transform: Object): URL;
static httpsImage(relPath: string, transform: Object): URL;
static httpsImage(host: string, relPath: string, transform: Object): URL;
static httpsStatic(context: string, contextID: string, relPath: string): URL;
static httpsStatic(host: string, context: string, contextID: string, relPath: string): URL;
static httpsStatic(relPath: string): URL;
static httpsStatic(host: string, relPath: string): URL;
static httpStatic(context: string, contextID: string, relPath: string): URL;
static httpStatic(host: string, context: string, contextID: string, relPath: string): URL;
static httpStatic(relPath: string): URL;
static httpStatic(host: string, relPath: string): URL;
static httpsWebRoot(): URL;
static httpWebRoot(): URL;
static imageURL(context: string, contextID: string, relPath: string, transform: Object): URL;
static imageURL(relPath: string, transform: Object): URL;
static sessionRedirect(host: string, url: URL): URL;
static sessionRedirectHttpOnly(host: string, url: URL): URL;
static staticURL(context: string, contextID: string, relPath: string): URL;
static staticURL(relPath: string): URL;
static url(action: URLAction, ...params: URLParameter): URL;
static url(appendSID: boolean, action: URLAction, ...params: URLParameter): URL;
static url(action: string, ...namesAndParams: string): URL;
static url(appendSID: boolean, action: string, ...namesAndParams: string): URL;
static webRoot(): URL;
}
}